WORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
if(dwPlayerPtr != 0)
{
float PositionY; float PositionX;float PositionZ;
PositionX = *(float*)(dwPlayerPtr + Ofs_X);
PositionY = *(float*)(dwPlayerPtr + Ofs_Y);
PositionZ = *(float*)(dwPlayerPtr + Ofs_Z);
if(GetAsyncKeyState(VK_F10)&1)
{
float Telx = PositionX;
float Tely = PositionY;
float Telz = PositionZ;
if(GetAsyncKeyState(VK_F11)&1)
{
*(float*)(dwPlayerPtr + Ofs_X) = Telx;
*(float*)(dwPlayerPtr + Ofs_Y) = Tely;
*(float*)(dwPlayerPtr + Ofs_Z) = Telz;
}
#define ...
float PositionY, PositionX, PositionZ;
// Start hacks
if(dwPlayerPtr != 0)
{
//
}
PositionX = *(float*)(dwPlayerPtr + Ofs_X); PositionY = *(float*)(dwPlayerPtr + Ofs_Y); PositionZ = *(float*)(dwPlayerPtr + Ofs_Z);
float Telx = PositionX; float Tely = PositionY; float Telz = PositionZ;
// declare variables
float PositionY, PositionX, PositionZ;
//Start hacks
DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer;
if(dwPlayerPtr != 0)
{
if(GetAsyncKeyState(VK_F10)&1)
{
// We take the position only when pressing F10
PositionX = *(float*)(dwPlayerPtr + Ofs_X);
PositionY = *(float*)(dwPlayerPtr + Ofs_Y);
PositionZ = *(float*)(dwPlayerPtr + Ofs_Z);
}
if(GetAsyncKeyState(VK_F11)&1)
{
// The playerPosition will be the one we took before
*(float*)(dwPlayerPtr + Ofs_X) = PositionX;
*(float*)(dwPlayerPtr + Ofs_Y) = PositionY;
*(float*)(dwPlayerPtr + Ofs_Z) = PositionZ;
}
}
