Solved Crosshair

Hexui Undetected CSGO Cheats PUBG Accounts

pogz080

Newbie
Silenced
Aug 26, 2012
6
211
0
Does anyone know how to compile this D3D crosshair into dll file so it work for a game?

C++:
void Hacks::DrawCrosshair(IDirect3DDevice9 *d3dDevice)
{
	if(hack[CUSTOM_CROSSHAIR].on)
	{
		//make sure our line is valid first
		//basically two very small rectangles
		//51 because its exactly in the center
		//accross line <- ->
		DrawFilledRect( (g_ViewPort.Width/2)-30, (g_ViewPort.Height/2)-1, 60, 3, fontRed, d3dDevice );
		//Up and down line
		DrawFilledRect( (g_ViewPort.Width/2)-1, (g_ViewPort.Height/2)-30, 3, 60, fontRed, d3dDevice );
	}
}
for COD4 for example...
but only crosshair nothing else.
 

velreine

Newbie
Full Member
Aug 27, 2012
36
504
0
From what i can see... you have this check if CUSTOM_CROSSHAIR is on. So can't you just do like
bool AlwaysDrawCrosshair = True;

and then replace the if at the top with


if(AlwaysDrawCrosshair)
 

programmer

Jr.Coder
Full Member
Jul 15, 2012
46
717
2
watch fleep tutorial of the c++ directx menu then put this code like this
C++:
void Hacks::DrawMenu(IDirect3DDevice9 *d3dDevice)
{
	if(hack[CUSTOM_CROSSHAIR].on)
	{
		//make sure our line is valid first
		//basically two very small rectangles
		//51 because its exactly in the center
		//accross line <- ->
		DrawFilledRect( (g_ViewPort.Width/2)-30, (g_ViewPort.Height/2)-1, 60, 3, fontRed, d3dDevice );
		//Up and down line
		DrawFilledRect( (g_ViewPort.Width/2)-1, (g_ViewPort.Height/2)-30, 3, 60, fontRed, d3dDevice );
	}
}
it 100% works
 
Last edited by a moderator:
Community Mods