Advertisement
Guest User

asdasd

a guest
Feb 13th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. if(strcmp(cmd, "/gotoxyz", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. tmp = strtok(cmdtext, idx);
  6. if(!strlen(tmp))
  7. {
  8. SendClientMessage(playerid, COLOR_GRAD2, "[OscL.Ro] /gotopos <[X] [Y] [Z]>");
  9. return 1;
  10. }
  11. else
  12. if(AdminDuty[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "[OscL.Ro]Nu esti On Duty pentru a avea acces la aceasta comanda !");
  13. new Float:para1;
  14. new Float:para2;
  15. new Float:para3;
  16. para1 = strval(tmp);
  17. tmp = strtok(cmdtext, idx);
  18. para2 = strval(tmp);
  19. tmp = strtok(cmdtext, idx);
  20. para3 = strval(tmp);
  21. if(PlayerInfo[playerid][pAdmin] >= 1339)
  22. {
  23. if (GetPlayerState(playerid) == 2)
  24. {
  25. new tmpcar = GetPlayerVehicleID(playerid);
  26. SetVehiclePos(tmpcar, para1,para2,para3);
  27. TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
  28. }
  29. else
  30. SetPlayerPos(playerid, para1,para2,para3);
  31. SendClientMessage(playerid, COLOR_YELLOW2, "[OscL.Ro]Ai fost teleportat la coordonatele puse !");
  32. PlayerInfo[playerid][pInt] = 0;
  33. }
  34. else
  35. {
  36. SendError(playerid,cmd);
  37. }
  38. }
  39. return 1;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement