Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › Crossfire Coding Help & Discussion › How to make D3D crosshair

How to make D3D crosshair

Posts 1–12 of 12 · Page 1 of 1
FD
FDSDSDFSDFSDFSDF
How to make D3D crosshair
Hello, I need to make D3D Menu and one function in it = crosshair

it is desirable that there was a choice colors of crosshair


How to realize this?


thanks for the help
#1 · 13y ago
DarkPladin
DarkPladin
try to google for it , there is a lot of codes for crosshair !!!!!!!
and a lot of shapes for it !!
#2 · 13y ago
AL
Aldimann
Function:
void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
{
D3DRECT rec = { x, y, x + w, y + h };
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
}
Drawing it :
D3DVIEWPORT9 view;
pDevice->GetViewport(&view);
int CenterX = (view.Width/2);//Gets screen X resolution then cutting it in half to get the center.
int CenterY = (view.Height/2);//Gets screen Y resolution then cutting it in half to get the center.
FillRGB(CenterX-15, CenterY, 30, 1,D3DCOLOR_XRGB(255,0,0),pDevice);//Diagonal line
FillRGB(CenterX, CenterY-15, 1, 30,D3DCOLOR_XRGB(255,0,0),pDevice);//Vertical line
#3 · 13y ago
DarkPladin
DarkPladin
different way , and easier for Center x , y
Code:
int iCenterX = GetSystemMetrics( 0 ) / 2;
	int iCenterY = GetSystemMetrics( 1 ) / 2;
#4 · 13y ago
CO
CoderCf
But i think that he need a HOOK
#5 · 13y ago
Biesi
Biesi
Quote Originally Posted by CoderCf View Post
But i think that he need a HOOK
You just want someone to post a working hook so you can c&p it (?)
#6 · 13y ago
DarkPladin
DarkPladin
Quote Originally Posted by CoderCf View Post
But i think that he need a HOOK
u need hook too !!!
#7 · 13y ago
CO
CoderCf
I need it to but i have:

WallHack (32bit only) - Memory
SeeGhost (WhileMoving) - Memory
Crosshair - Memory
#8 · 13y ago
DarkPladin
DarkPladin
~Easy to Made !!!!!
u can search for their codes !
#9 · 13y ago
XX
XXkillerFin1
Quote Originally Posted by Aldimann View Post
Function:


Drawing it :
Tell me,What is pDevice? I don't really understand
#10 · 13y ago
XX
XXkillerFin1
Quote Originally Posted by XXkillerFin1 View Post
Tell me,What is pDevice? I don't really understand
Never mind anymore. I was confused
#11 · 13y ago
LO
longkuteno3qb
Do you share me your hook d3d crosshair ?
#12 · 10y ago
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

  • How to make an Crosshair!By chard95 in Programming Tutorials
    4Last post 17y ago
  • VB6 How To Make A CrossHairBy gunnybunny in Visual Basic Programming
    3Last post 17y ago
  • [Request] How to make a crosshair for combat arms in Visual basic?By trevor206 in Programming Tutorial Requests
    3Last post 16y ago
  • How to make a crosshair in c++By .:Dark Angel:. in C++/C Programming
    3Last post 16y ago
  • How to make a Crosshair on C++ that stays ontop of CABy hopefordope in Programming Tutorial Requests
    1Last post 16y ago

Tags for this Thread

None