Britas

[skriptas] teleportasSuLaiku

Mar 11th, 2013
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.50 KB | None | 0 0
  1. #define teleportasSuLaiku(%0,%1,%2,%3,%4) SetTimerEx("teleportSuLaiku", 5000, false, "ifffb", %0, %1, %2, %3, %4)
  2.  
  3. forward teleportSuLaiku(pid, Float:x, Float:y, Float:z, bool:masinosTeleport);
  4. public teleportSuLaiku(pid, Float:x, Float:y, Float:z, bool:masinosTeleport)
  5. {
  6.     if(!IsPlayerConnected(pid)) return 1;
  7.     else if(masinosTeleport && GetPlayerState(pid) == PLAYER_STATE_DRIVER)
  8.     {
  9.         SetVehiclePos(GetPlayerVehicleID(pid), x, y, z);
  10.         return 1;
  11.     }
  12.     SetPlayerPos(pid, x, y, z);
  13.     return 1;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment