This is the Source i'm using so far in my No-Menu Hack...but when i go in-game and try to activate pressing the hotkeys it won't..any ideas?
Code:
void Teleport () ///// Teleport
{
DWORD dwPlayerPtr = *(DWORD*)Addr_Playerpointer; /// Player Pointer Addie
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OffSet_X);
PositionY = *(float*)(dwPlayerPtr + OffSet_Y);
PositionZ = *(float*)(dwPlayerPtr + OffSet_Z);
if(GetAsyncKeyState(VK_NUMPAD4)&1){ //NUMPAD 4
*(float*)Telx = PositionX;
*(float*)Tely = PositionY;
*(float*)Telz = PositionZ;}
if(GetAsyncKeyState(VK_NUMPAD5)&1){ // NUMPAD 5
*(int*)(dwPlayerPtr + OffSet_X) = Telx;
*(int*)(dwPlayerPtr + OffSet_Y) = Tely;
*(int*)(dwPlayerPtr + OffSet_Z) = Telz;}
if(GetAsyncKeyState(VK_NUMPAD6)&1){ //NUMPAD 6
*(float*)(dwPlayerPtr + OffSet_X) += 30;}}}