Solved Only drawing 1 box ENDSCENE

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat
Status
Not open for further replies.

j3b

Jr.Coder
Full Member
Nobleman
Dec 18, 2012
67
408
1
Hi. I saw gnuzim endscene hooking[guidedhacking.com/showthread.php?4706-Rust-VMT-EndScene] here on the forum and i wanted to try it for CSGO. But the problem is that its only drawing 1 box at the time. Example ; if there are 3 players infront of me, its only drawing on one player.
Ive been doing external, so im using the same logic. But getting this problem.

I hope that someone could help me maybe :) ?

Here is my code


C++:
    while (true)
       {
			Sleep(1);
			for(int i=0;i<32;i++)
			{
				myPlayerInfo();
			       getPlayerInfo(i);
		               if(!(myHealth && Health && Team && myTeam && myPos && Pos && Dormant)) continue;
	
			      if(*Health>100 || *Health<=0) continue;
			      if(*Dormant==1) continue;
			      *(DWORD_PTR*)(pGame->pVMT->pD3D + 0xA8) = (DWORD_PTR)hkEndScene;
				
			}

ESP() contains, world2screen, distancecheck, and DrawBox...

C++:
DWORD WINAPI hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{
    _asm pushad;
   Render(pDevice);
    _asm popad;
    return pEndScene(pDevice);
}


void Render(LPDIRECT3DDEVICE9 pDevice)
{
	if(!p_Line)
	{
		D3DXCreateLine(pDevice, &p_Line);
	}	
	ESP();
}

void DrawBox(float x, float y, float width, float height, float px, int r, int g, int b, int a) 
{ 

	D3DXVECTOR2 points[5];  
	points[0] = D3DXVECTOR2(x,y);  
	points[1] = D3DXVECTOR2(x+width,	y);  
	points[2] = D3DXVECTOR2(x+width,	y+height);  
	points[3] = D3DXVECTOR2(x,y+height);  
	points[4] = D3DXVECTOR2(x,y);  
	p_Line->SetWidth(1);
	p_Line->Draw(points, 5, D3DCOLOR_RGBA(r, g, b, a));
}
 
Status
Not open for further replies.
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.

Similar threads

Community Mods