Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TeleportForward(void)
- {
- if ( IS_PLAYER_PLAYING(GetPlayerIndex()) )
- {
- float x, y, z, ch;
- GET_CHAR_HEADING(GetPlayerPed(), &ch);
- GET_CHAR_COORDINATES(GetPlayerPed(), &x, &y, &z);
- SET_CHAR_COORDINATES(GetPlayerPed(), x+(10*SIN((-1*ch))), y+(10*COS((-1*ch))), z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment