Advertisement
Guest User

sdasdas

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. CMD:dara4413(playerid, params[])
  2. {
  3. new string[126];
  4. new ID,ADMIN;
  5. if(PlayerInfo[playerid][jAdminNvl] < 6) return 0;
  6. if(sscanf(params, "dd", ID,ADMIN)) return SendClientMessage(playerid,COLOR_WHITE,"Uso: /dara [id] [nivel]");
  7. else if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_WHITE,"Jugador no conectado");
  8. else
  9. {
  10. if(ADMIN == 0)
  11. {
  12. format(string, sizeof(string), "%s expulsaste del Staff a %s", NombreJugador(playerid), NombreJugador(ID));
  13. SendClientMessage(playerid,0x2AFF0000, string);
  14. Log("logs/daradmin.log", string);
  15. PlayerInfo[ID][jAdminNvl] = 0;
  16. }
  17. if(ADMIN == 1)
  18. {
  19. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Ayudante del Canal de Dudas.", NombreJugador(playerid), ADMIN);
  20. SendClientMessage(ID,0x2AFF0000, string);
  21. format(string, sizeof(string), "%s has hecho a %s Ayudante en el Canal de Dudas (1).", NombreJugador(playerid), NombreJugador(ID));
  22. SendClientMessage(playerid,0x2AFF0000, string);
  23. Log("logs/daradmin.log", string);
  24. PlayerInfo[ID][jAdminNvl] = 1;
  25. }
  26. if(ADMIN == 2)
  27. {
  28. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Moderador del Canal de Dudas.", NombreJugador(playerid), ADMIN);
  29. SendClientMessage(ID,0x2AFF0000, string);
  30. format(string, sizeof(string), "%s has hecho a %s Moderador del Canal de Dudas (2).", NombreJugador(playerid), NombreJugador(ID));
  31. SendClientMessage(playerid,0x2AFF0000, string);
  32. Log("logs/daradmin.log", string);
  33. PlayerInfo[ID][jAdminNvl] = 2;
  34. }
  35. if(ADMIN == 3)
  36. {
  37. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Moderador del Juego.", NombreJugador(playerid), ADMIN);
  38. SendClientMessage(ID,0x2AFF0000, string);
  39. format(string, sizeof(string), "%s has hecho a %s Moderador del Juego (3).", NombreJugador(playerid), NombreJugador(ID));
  40. SendClientMessage(playerid,0x2AFF0000, string);
  41. Log("logs/daradmin.log", string);
  42. PlayerInfo[ID][jAdminNvl] = 3;
  43. }
  44. if(ADMIN == 4)
  45. {
  46. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Moderador Global.", NombreJugador(playerid), ADMIN);
  47. SendClientMessage(ID,0x2AFF0000, string);
  48. format(string, sizeof(string), "%s has hecho a %s Moderador Global (4).", NombreJugador(playerid), NombreJugador(ID));
  49. SendClientMessage(playerid,0x2AFF0000, string);
  50. Log("logs/daradmin.log", string);
  51. PlayerInfo[ID][jAdminNvl] = 4;
  52. }
  53. if(ADMIN == 5)
  54. {
  55. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Administrador.", NombreJugador(playerid), ADMIN);
  56. SendClientMessage(ID,0x2AFF0000, string);
  57. format(string, sizeof(string), "%s has hecho a %s Administrador (5).", NombreJugador(playerid), NombreJugador(ID));
  58. SendClientMessage(playerid,0x2AFF0000, string);
  59. Log("logs/daradmin.log", string);
  60. PlayerInfo[ID][jAdminNvl] = 5;
  61. }
  62. if(ADMIN == 6)
  63. {
  64. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Sub Dueño.", NombreJugador(playerid), ADMIN);
  65. SendClientMessage(ID,0x2AFF0000, string);
  66. format(string, sizeof(string), "%s has hecho a %s Sub Dueño (6).", NombreJugador(playerid), NombreJugador(ID));
  67. SendClientMessage(playerid,0x2AFF0000, string);
  68. Log("logs/daradmin.log", string);
  69. PlayerInfo[ID][jAdminNvl] = 6;
  70. }
  71. if(ADMIN == 7)
  72. {
  73. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Dueño.", NombreJugador(playerid), ADMIN);
  74. SendClientMessage(ID,0x2AFF0000, string);
  75. format(string, sizeof(string), "%s has hecho a %s Dueño (7).", NombreJugador(playerid), NombreJugador(ID));
  76. SendClientMessage(playerid,0x2AFF0000, string);
  77. Log("logs/daradmin.log", string);
  78. PlayerInfo[ID][jAdminNvl] = 7;
  79. }
  80. if(ADMIN == 8)
  81. {
  82. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Sub-Fundador.", NombreJugador(playerid), ADMIN);
  83. SendClientMessage(ID,0x2AFF0000, string);
  84. format(string, sizeof(string), "%s has hecho a %s Dueño (8).", NombreJugador(playerid), NombreJugador(ID));
  85. SendClientMessage(playerid,0x2AFF0000, string);
  86. Log("logs/daradmin.log", string);
  87. PlayerInfo[ID][jAdminNvl] = 8;
  88. }
  89. if(ADMIN == 9)
  90. {
  91. format(string, sizeof(string), "¡Felicitaciones! %s te ha asignado Fundador general papuh.", NombreJugador(playerid), ADMIN);
  92. SendClientMessage(ID,0x2AFF0000, string);
  93. format(string, sizeof(string), "%s has hecho a %s Owner (9).", NombreJugador(playerid), NombreJugador(ID));
  94. SendClientMessage(playerid,0x2AFF0000, string);
  95. Log("logs/daradmin.log", string);
  96. PlayerInfo[ID][jAdminNvl] = 9;
  97. }
  98. }
  99. return 1;
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement