Solved Crosshair

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

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
Nobleman
Jul 15, 2012
46
422
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:
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods League of Legends Accounts