This is how teleport works <()>
Code:
if(CH_teleport == 1)
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;
if(dwPlayerPtr != 0)
{
float PositionY = 0.0; float PositionX = 0.0;float PositionZ = 0.0;
PositionX = *(float*)(dwPlayerPtr + OFS_X);
PositionY = *(float*)(dwPlayerPtr + OFS_Y);
PositionZ = *(float*)(dwPlayerPtr + OFS_Z);
if(GetAsyncKeyState(VK_F10)&1){
Telx = PositionX;
Tely = PositionY;
Telz = PositionZ;}
if(GetAsyncKeyState(VK_F11)&1){
*(float*)(dwPlayerPtr + OFS_X) = Telx;
*(float*)(dwPlayerPtr + OFS_Y) = Tely;
*(float*)(dwPlayerPtr + OFS_Z) = Telz;
}
}
}
The F11 key Teleport YOu to saved Location, F10 Save your Location 'Remember, this is is only in the map you saved the data, if you go to another map you'll be teleported to same cordinates but you will look something completly different, exampe: you save location in marien (Derbaran Base) you goto khali teleport & you teleport in the middle of nowhere,
OFS_Y,OFS_X,OFS_Z are de adresses, Those are needed.
Float are the Functions