Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. //------------------------------------------------------------------------------
  2. if (strcmp(cmdtext, "/port", true) == 0)
  3. {
  4. if(IsPlayerConnected(playerid))
  5. {
  6. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGameMaster] >= 1)
  7. {
  8. ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST, "{FF0000}NewCity Teleport","Poznati Lokacii\nRabota\nOrganizacii\nSkladovi","Port", "Iskluci");
  9. }
  10. else
  11. {
  12. SendClientMessage(playerid, COLOR_YELLOW, "Ne ste ovlasten da vlezete vo ovoj Panel !.");
  13. }
  14. }
  15. return 1;
  16. }
  17. if(strcmp(cmd, "/gotocrash", true) == 0)
  18. {
  19. if(IsPlayerConnected(playerid))
  20. {
  21. if (PlayerInfo[playerid][pAdmin] >= 1)
  22. {
  23. if(GetPlayerState(playerid) == 2)
  24. {
  25. new tmpcar = GetPlayerVehicleID(playerid);
  26. SetVehiclePos(tmpcar, -1197.0713,-940.0720,129.2188);
  27. TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
  28. }
  29. else
  30. {
  31. SetPlayerPos(playerid, -1197.0713,-940.0720,129.2188);
  32. }
  33. SendClientMessage(playerid, COLOR_GRAD1, " Teleportirani ste");
  34. SetPlayerInterior(playerid,0);
  35. PlayerInfo[playerid][pInt] = 0;
  36. }
  37. else
  38. {
  39. SendClientMessage(playerid, COLOR_GRAD1, "{FF4040}GRESKA:{FFFFFF}Nemozete da ja koristite ovaa komanda.");
  40. }
  41. }
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement