Advertisement
Guest User

comanda

a guest
Jan 4th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. CMD:gotojob(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
  4. if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_LIGHTGREEN3, AdminOnly);
  5. new id;
  6. if(sscanf(params, "i", id)) return SendClientMessage(playerid, COLOR_GREY, "Scrie: /gotojob [job id]");
  7. if(id < 0 || id > 13) return SendClientMessage(playerid, COLOR_GREY, "Invalid job id");
  8. SetPlayerInterior(playerid, 0);
  9. SetPlayerVirtualWorld(playerid, 0);
  10. new string[180];
  11. format(string, sizeof(string), "%s used /gotojob %d (%s).", GetName(playerid), id, JobInfo[id][jName]);
  12. ABroadCast(COLOR_ADMCOMMANDS, string, 1);
  13. if(id == 1)
  14. {
  15. SetPlayerPos(playerid, 1366.9601,-1292.1105,13.5469);
  16. SetPlayerInterior(playerid, 0);
  17. SCM(playerid, COLOR_GREY, "You has been teleported");
  18. }
  19. else if(id == 2)
  20. {
  21. SetPlayerPos(playerid, 2129.9590,-1700.0682,15.0784);
  22. SetPlayerInterior(playerid, 0);
  23. SCM(playerid, COLOR_GREY, "You has been teleported");
  24. }
  25. else if(id == 3)
  26. {
  27. SetPlayerPos(playerid, -366.4417,-1412.7061,25.7266);
  28. SetPlayerInterior(playerid, 0);
  29. SCM(playerid, COLOR_GREY, "You has been teleported");
  30. }
  31. else if(id == 4)
  32. {
  33. SetPlayerPos(playerid, 1653.6558,-2238.0095,13.5201);
  34. SetPlayerInterior(playerid, 0);
  35. SCM(playerid, COLOR_GREY, "You has been teleported");
  36. }
  37. else if(id == 5)
  38. {
  39. SetPlayerPos(playerid, 2510.2173,2794.8362,10.8203);
  40. SetPlayerInterior(playerid, 0);
  41. SCM(playerid, COLOR_GREY, "You has been teleported");
  42. }
  43. else if(id == 6)
  44. {
  45. SetPlayerPos(playerid, 607.8508,-1438.1113,14.0647);
  46. SetPlayerInterior(playerid, 0);
  47. SCM(playerid, COLOR_GREY, "You has been teleported");
  48. }
  49. else if(id == 7)
  50. {
  51. SetPlayerPos(playerid, 2849.8909,891.6392,10.7500);
  52. SetPlayerInterior(playerid, 0);
  53. SCM(playerid, COLOR_GREY, "You has been teleported");
  54. }
  55. else if(id == 8)
  56. {
  57. SetPlayerPos(playerid, 1621.0037,2210.8643,15.1959);
  58. SetPlayerInterior(playerid, 0);
  59. SCM(playerid, COLOR_GREY, "You has been teleported");
  60. }
  61. else if(id == 9)
  62. {
  63. SetPlayerPos(playerid, 2120.0132,-1786.2161,13.5608);
  64. SetPlayerInterior(playerid, 0);
  65. SCM(playerid, COLOR_GREY, "You has been teleported");
  66. }
  67. else if(id == 10)
  68. {
  69. SetPlayerPos(playerid, 372.0800,-2086.0505,7.8359);
  70. SetPlayerInterior(playerid, 0);
  71. SCM(playerid, COLOR_GREY, "You has been teleported");
  72. }
  73. else if(id == 11)
  74. {
  75. SetPlayerPos(playerid, 2000.5967,1568.3157,15.3672);
  76. SetPlayerInterior(playerid, 0);
  77. SCM(playerid, COLOR_GREY, "You has been teleported");
  78. }
  79. else if(id == 12)
  80. {
  81. SetPlayerPos(playerid, -76.8129,-1136.6630,1.0781);
  82. SetPlayerInterior(playerid, 0);
  83. SCM(playerid, COLOR_GREY, "You has been teleported");
  84. }
  85. else if(id == 13)
  86. {
  87. SetPlayerPos(playerid, -88.9780,-1564.3032,3.0043);
  88. SetPlayerInterior(playerid, 0);
  89. SCM(playerid, COLOR_GREY, "You has been teleported");
  90. }
  91. return 1;
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement