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!