Advertisement
Jura2207

Untitled

Dec 7th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. cmd(resveh1, playerid, params[]) // Komanda za resetiranje vozila ID 1 igracu. (online stats = NE)
  2. {
  3. new string[128];
  4.  
  5. if(IsPlayerConnectedAndLoggedIn(playerid))
  6. {
  7. if(PlayerInfo[playerid][pAdmin] >= 1337) // Admin level 1337+.
  8. {
  9. if(AdminDuty[playerid] > 0)
  10. {
  11. new player;
  12. if(sscanf(params, "u", player))
  13. {
  14. SendClientMessage(playerid, COLOR_HELP, "KORISTENJE: /resveh1 [ID/DioImena]");
  15. return 1;
  16. }
  17. if(IsPlayerConnectedAndLoggedIn(player))
  18. {
  19. if(player != INVALID_PLAYER_ID)
  20. {
  21.  
  22. PlayerInfo[player][pCarOne] = 999;
  23.  
  24. format(string, sizeof(string), "INFO: Uspjesno ste resetirali vozilo ID [1] u statistikama online igracu %s.", PlayerName[player]);
  25. SendClientMessage(playerid, COLOR_RED, string);
  26. }
  27. }
  28. else
  29. {
  30. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Odabrani igrac nije online ili nije ulogiran u svoj korisnicki racun.");
  31. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  32. }
  33. }
  34. else
  35. {
  36. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Morate biti na duznosti kako bi mogli koristiti admin komande / mogucnosti.");
  37. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  38. }
  39. }
  40. else
  41. {
  42. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Niste autorizirani da koristite ovu komandu - nemate administrator level.");
  43. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  44. }
  45. }
  46.  
  47. return 1;
  48. }
  49. cmd(resveh2, playerid, params[]) // Komanda za resetiranje vozila ID 1 igracu. (online stats = NE)
  50. {
  51. new string[128];
  52.  
  53. if(IsPlayerConnectedAndLoggedIn(playerid))
  54. {
  55. if(PlayerInfo[playerid][pAdmin] >= 1337) // Admin level 1337+.
  56. {
  57. if(AdminDuty[playerid] > 0)
  58. {
  59. new player;
  60. if(sscanf(params, "u", player))
  61. {
  62. SendClientMessage(playerid, COLOR_HELP, "KORISTENJE: /resveh2 [ID/DioImena]");
  63. return 1;
  64. }
  65. if(IsPlayerConnectedAndLoggedIn(player))
  66. {
  67. if(player != INVALID_PLAYER_ID)
  68. {
  69.  
  70. PlayerInfo[player][pCarTwo] = 999;
  71.  
  72. format(string, sizeof(string), "INFO: Uspjesno ste resetirali vozilo ID [2] u statistikama online igracu %s.", PlayerName[player]);
  73. SendClientMessage(playerid, COLOR_RED, string);
  74. }
  75. }
  76. else
  77. {
  78. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Odabrani igrac nije online ili nije ulogiran u svoj korisnicki racun.");
  79. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  80. }
  81. }
  82. else
  83. {
  84. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Morate biti na duznosti kako bi mogli koristiti admin komande / mogucnosti.");
  85. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  86. }
  87. }
  88. else
  89. {
  90. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Niste autorizirani da koristite ovu komandu - nemate administrator level.");
  91. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  92. }
  93. }
  94.  
  95. return 1;
  96. }
  97. cmd(resveh3, playerid, params[]) // Komanda za resetiranje vozila ID 1 igracu. (online stats = NE)
  98. {
  99. new string[128];
  100.  
  101. if(IsPlayerConnectedAndLoggedIn(playerid))
  102. {
  103. if(PlayerInfo[playerid][pAdmin] >= 1337) // Admin level 1337+.
  104. {
  105. if(AdminDuty[playerid] > 0)
  106. {
  107. new player;
  108. if(sscanf(params, "u", player))
  109. {
  110. SendClientMessage(playerid, COLOR_HELP, "KORISTENJE: /resveh3 [ID/DioImena]");
  111. return 1;
  112. }
  113. if(IsPlayerConnectedAndLoggedIn(player))
  114. {
  115. if(player != INVALID_PLAYER_ID)
  116. {
  117.  
  118. PlayerInfo[player][pCarThr] = 999;
  119.  
  120. format(string, sizeof(string), "INFO: Uspjesno ste resetirali vozilo ID [3] u statistikama online igracu %s.", PlayerName[player]);
  121. SendClientMessage(playerid, COLOR_RED, string);
  122. }
  123. }
  124. else
  125. {
  126. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Odabrani igrac nije online ili nije ulogiran u svoj korisnicki racun.");
  127. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  128. }
  129. }
  130. else
  131. {
  132. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Morate biti na duznosti kako bi mogli koristiti admin komande / mogucnosti.");
  133. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  134. }
  135. }
  136. else
  137. {
  138. SendClientMessage(playerid, COLOR_ERROR, "ERROR: Niste autorizirani da koristite ovu komandu - nemate administrator level.");
  139. PlayerPlaySound(playerid, 1055, 0.0, 0.0, 0.0);
  140. }
  141. }
  142.  
  143. return 1;
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement