Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define teleportasSuLaiku(%0,%1,%2,%3,%4) SetTimerEx("teleportSuLaiku", 5000, false, "ifffb", %0, %1, %2, %3, %4)
- forward teleportSuLaiku(pid, Float:x, Float:y, Float:z, bool:masinosTeleport);
- public teleportSuLaiku(pid, Float:x, Float:y, Float:z, bool:masinosTeleport)
- {
- if(!IsPlayerConnected(pid)) return 1;
- else if(masinosTeleport && GetPlayerState(pid) == PLAYER_STATE_DRIVER)
- {
- SetVehiclePos(GetPlayerVehicleID(pid), x, y, z);
- return 1;
- }
- SetPlayerPos(pid, x, y, z);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment