PaulCastellano

ayya

Feb 26th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. YCMD:aduty(playerid, params[],help)
  2. {
  3. #pragma unused help
  4. #pragma unused params
  5. if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""PPLAVA"[BE:RP] "C_BELA"Moras biti prijavljen.");
  6. if(PI[playerid][Admin] == 0) return Ovlascenje(playerid);
  7. if(PI[playerid][TrazeniNivo] >= 1) return Error(playerid, "Ne mozete koristiti ovu komandu jer imate wanted level.");
  8. if(PI[playerid][Admin] < 6 && PosaoAktivan[playerid] == 1) return Error(playerid, "Radis posao,ne mozes ici duty.");
  9. if(IgracNaEventu[playerid] == 1) return Error(playerid, "Na eventu si,ne mozes to.");
  10. if(AdminDuty[playerid] == 0)
  11. {
  12. if(PI[playerid][Pol] == 1)
  13. {
  14. if(PI[playerid][Admin] == 6)
  15. {
  16. format(conelys, sizeof(conelys),""PPLAVA"(( {FFFFFF}Vlasnik "PPLAVA"%s {FFFFFF}je na duznosti, koristi "PPLAVA"/pitaj {FFFFFF}ako mu zelis postaviti pitanje! "PPLAVA"))",ImeIgraca(playerid));
  17. }
  18. else
  19. {
  20. format(conelys, sizeof(conelys),""PPLAVA"(( {FFFFFF}Admin "PPLAVA"%s {FFFFFF}je na duznosti, koristi "PPLAVA"/pitaj {FFFFFF}ako mu zelis postaviti pitanje! "PPLAVA"))",ImeIgraca(playerid));
  21. }
  22. SCMTA(COLOR_GRAD1,conelys);
  23. SetPlayerSkin(playerid, 294);
  24. AdminDuty[playerid] = 1;
  25. SetPlayerColor(playerid, 0xFF0000FF);
  26. g_SetPlayerArmour(playerid, 99.0);
  27. SetPlayerHealth_H(playerid, 99.0);
  28. }
  29. else
  30. {
  31. format(conelys, sizeof(conelys),""PPLAVA"(( {FFFFFF}Adminka "PPLAVA"%s {FFFFFF}je na duznosti, koristi "PPLAVA"/pitaj {FFFFFF}ako joj zelis postaviti pitanje! "PPLAVA"))",ImeIgraca(playerid));
  32. SCMTA(COLOR_GRAD1,conelys);
  33. SetPlayerSkin(playerid, 211);
  34. AdminDuty[playerid] = 1;
  35. SetPlayerColor(playerid, 0xFF0000FF);
  36. g_SetPlayerArmour(playerid, 99.0);
  37. SetPlayerHealth_H(playerid, 99.0);
  38. }
  39. }
  40. else if(AdminDuty[playerid] == 1)
  41. {
  42. if(PI[playerid][Pol] == 1)
  43. {
  44. if(PI[playerid][Admin] == 6)
  45. {
  46. format(conelys,sizeof(conelys),""PPLAVA"(( {FFFFFF}Vlasnik "PPLAVA"%s {FFFFFF}vise nije na duznosti."PPLAVA"))",ImeIgraca(playerid));
  47. }
  48. else
  49. {
  50. format(conelys,sizeof(conelys),""PPLAVA"(( {FFFFFF}Admin "PPLAVA"%s {FFFFFF}vise nije na duznosti."PPLAVA"))",ImeIgraca(playerid));
  51. }
  52. SCMTA(COLOR_GRAD1,conelys);
  53. }
  54. else
  55. {
  56. format(conelys,sizeof(conelys),""PPLAVA"(( {FFFFFF}Adminka "PPLAVA"%s {FFFFFF}vise nije na duznosti."PPLAVA"))",ImeIgraca(playerid));
  57. SCMTA(COLOR_GRAD1,conelys);
  58. }
  59. g_SetPlayerArmour(playerid, 0);
  60. SetPlayerHealth_H(playerid, 99.0);
  61. SetPlayerSkin(playerid, PI[playerid][pSkin]);
  62. SetPlayerColor(playerid,TEAM_HIT_COLOR);
  63. AdminDuty[playerid] = 0;
  64. }
  65. return 1;
Add Comment
Please, Sign In to add comment