Advertisement
DexyHendrix

Untitled

Dec 6th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. CMD:gotoab(playerid, params[])
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(PlayerInfo[playerid][pHelper] >= 1 || PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSkripter] >= 1)
  6. {
  7. if (GetPlayerState(playerid) == 2)
  8. {
  9. new tmpcar = GetPlayerVehicleID(playerid);
  10. SafeTeleport[playerid] = 1;
  11. SetVehiclePos(tmpcar, -532.8,2595,53.35);
  12. TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
  13. }
  14. else
  15. {
  16. SetPlayerPos(playerid, -532.8,2595,53.35);
  17. }
  18. SCM(playerid, COLOR_GRAD1, " Portovali ste se do "OLDEXT" Admin Baze!");
  19. SetPlayerInterior(playerid,0);
  20. PlayerInfo[playerid][pInt] = 0;
  21. SetPlayerVirtualWorld(playerid, 0);
  22. TogglePlayerControllable(playerid,0);
  23. UcitavanjeIgraca(playerid);
  24. }
  25. else
  26. {
  27. SCM(playerid, COLOR_GRAD1, " Niste ovlasceni da koristite ovu komandu!");
  28. }
  29. }
  30. return 1;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement