❓ Need Help with ESP bzw D3DXVECTOR3

Posts 1–5 of 5 · Page 1 of 1
❓ Need Help with ESP bzw D3DXVECTOR3
Hey MPGH

I need your help ,
i have an problem... I have tryed to build a ESP func.
I have the x,y,z coards from the enemy and from my player.
But it crash. Can anybode help me? :/
Thanks


Code:
void ESP()
{
        PlayerPosition* pTargetPlayerPosition = 0;
	PlayerPosition* pOwnPosition = 0;
	if(g_ESP == true & g_iESP == false)//hack on off
	{
		if(*(DWORD*)(ADR_RoomState) == 1)//check if you are in room or not 
		{
	//-------------------Get X,Y,Z from Enemy----------------//
	pTargetPlayerPosition = reinterpret_cast<PlayerPosition*>(GetPlayerAddress(g_iSelectedPlayer)); //get x,y,z from selected player
        D3DXVECTOR3 View(0,0,0);
        D3DXVECTOR3 Enemy2 (pTargetPlayerPosition->X,pTargetPlayerPosition->Y,pTargetPlayerPosition->Z);
        if(GetScreenCoordFromWorld(pDevice, View, Enemy2))
        {
        DrawBox(View.x,View.y,10,10,RED,pDevice);
        }
}
}
struct PlayerPosition
{
	float X;
	float Z;
	float Y;	
};
Thanks!
maybe pDevice gout be invalid?
Nono. I solved it. But now I have a new problem.. I cant access/find the x,y,z pointer/ofs for the enemys :/
could some help me?
Quote Originally Posted by ~Kau~ View Post
Nono. I solved it. But now I have a new problem.. I cant access/find the x,y,z pointer/ofs for the enemys :/
could some help me?
For what game is it?
BrickForce
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us