Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.63 KB | None | 0 0
  1. // PRVIN DEFINIRAME DIALOG
  2. #define testing 10000
  3.  
  4. // Gi stavame new
  5. new VLWarning[MAX_PLAYERS];
  6. new VLADchat[MAX_PLAYERS];
  7. new VLGMchat[MAX_PLAYERS];
  8. new VLOWchat[MAX_PLAYERS];
  9. new VLPMchat[MAX_PLAYERS];
  10. new VLAdmin[MAX_PLAYERS];
  11. new VLVlez[MAX_PLAYERS];
  12. new VLPomos[MAX_PLAYERS];
  13. new VLReport[MAX_PLAYERS];
  14. new VLEvent[MAX_PLAYERS];
  15.  
  16. // POSLE ova go stavame na OnPlayerDialog
  17. if(dialogid == testing)
  18. {
  19. if(response)
  20. {
  21. if(listitem == 0) // Warning Cheat
  22. {
  23. if(VLWarning[playerid] == 0)
  24. {
  25. VLWarning[playerid] = 1;
  26. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Warning Cheat.");
  27. }
  28. else
  29. {
  30. VLWarning[playerid] = 0;
  31. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Warning Cheat.");
  32. }
  33. }
  34. else if(listitem == 1) // Pomos
  35. {
  36. if(VLPomos[playerid] == 0)
  37. {
  38. VLPomos[playerid] = 1;
  39. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Pomos.");
  40. }
  41. else
  42. {
  43. VLPomos[playerid] = 0;
  44. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Pomos");
  45. }
  46. }
  47. else if(listitem == 2) // VL Report
  48. {
  49. if(VLReport[playerid] == 0)
  50. {
  51. VLReport[playerid] = 1;
  52. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Report.");
  53. }
  54. else
  55. {
  56. VLReport[playerid] = 0;
  57. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Report");
  58. }
  59. }
  60. else if(listitem == 3) // VL Event
  61. {
  62. if(VLEvent[playerid] == 0)
  63. {
  64. VLEvent[playerid] = 1;
  65. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte VL Event.");
  66. }
  67. else
  68. {
  69. VLEvent[playerid] = 0;
  70. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte VL Event");
  71. }
  72. }
  73. else if(listitem == 4) // VL Vleze na server
  74. {
  75. if(VLVlez[playerid] == 0)
  76. {
  77. VLVlez[playerid] = 1;
  78. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Warning za Koj Vleguva na servero");
  79. }
  80. else
  81. {
  82. VLVlez[playerid] = 0;
  83. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Warning za Koj Vleguva na servero");
  84. }
  85. }
  86. else if(listitem == 5) // VL /aa Admin/GM Chat
  87. {
  88. if(VLAdmin[playerid] == 0)
  89. {
  90. VLAdmin[playerid] = 1;
  91. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Admin/GM Chat /aa");
  92. }
  93. else
  94. {
  95. VLAdmin[playerid] = 0;
  96. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Admin/GM Chat /aa");
  97. }
  98. }
  99. else if(listitem == 6) // Admin Chat /a
  100. {
  101. if(PlayerInfo[playerid][pAdmin] >= 1)
  102. {
  103. if(VLADchat[playerid] == 0)
  104. {
  105. VLADchat[playerid] = 1;
  106. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Admin Chat /a (SAMO ADMIN)");
  107. }
  108. else
  109. {
  110. VLADchat[playerid] = 0;
  111. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Admin Chat /a (SAMO ADMIN)");
  112. }
  113. }else SCM(playerid, COLOR_GRAD1,"{0493E8}[ONOFF] » {FF0000}Greska{C0C0C0} | Vie ne ste Admin");
  114. }
  115. else if(listitem == 7) // GM Chat
  116. {
  117. if(PlayerInfo[playerid][pGameMaster] >= 1)
  118. {
  119. if(VLGMchat[playerid] == 0)
  120. {
  121. VLGMchat[playerid] = 1;
  122. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte GameMaster Chat /g (SAMO GM)");
  123. }
  124. else
  125. {
  126. VLGMchat[playerid] = 0;
  127. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte GameMaster Chat /g (SAMO GM)");
  128. }
  129. }else SCM(playerid, COLOR_GRAD1,"{0493E8}[ONOFF] » {FF0000}Greska{C0C0C0} | Vie ne ste GameMaster");
  130. }
  131. else if(listitem == 8) // Private Message /pm
  132. {
  133. if(VLPMchat[playerid] == 0)
  134. {
  135. VLPMchat[playerid] = 1;
  136. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go uklucivte Private Message");
  137. }
  138. else
  139. {
  140. VLPMchat[playerid] = 0;
  141. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno go isklucivte Private Message");
  142. }
  143. }
  144. else if(listitem == 9) // Cel /pm /gpm chat
  145. {
  146. if(PlayerInfo[playerid][pAdmin] == 2015)
  147. {
  148. if(VLOWchat[playerid] == 0)
  149. {
  150. VLOWchat[playerid] = 1;
  151. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno uklucivte da Citate Private Message /pm, /gpm");
  152. }
  153. else
  154. {
  155. VLOWchat[playerid] = 0;
  156. SCM(playerid,-1, "{0493E8}[ONOFF] » {FF0000}Uspesno isklucivte da Citate Private Message /pm, /gpm");
  157. }
  158. }
  159. }
  160. }
  161. return 1;
  162. }
  163. //
  164. CMD:onoff(playerid, params[])
  165. {
  166. if(PlayerInfo[playerid][pGameMaster] >= 1 || PlayerInfo[playerid][pAdmin] >= 1)
  167. {
  168. ShowPlayerDialog(playerid, testing, DIALOG_STYLE_LIST, "On/Off", "Warning Cheat\Pomos\Report\Event\nVleze na servero\nAdmin/GM Chat /aa\nAdmin Chat /a (SAMO ADMIN)\nGameMaster Chat /g (SAMO GM)\nPrivate Messages /pm, /gpm\nCitanje na /pm , /gpm (SAMO OWNER)", "On/Off", "Izlezi");
  169. }
  170. else
  171. {
  172. SendClientMessage(playerid,COLOR_GRAD1,"{0493E8}[ONOFF] » {FF0000}Informacija{C0C0C0} | Nemozete da ja koristete ovaa komanda !");
  173. }
  174. return 1;
  175. }
  176.  
  177.  
  178.  
  179.  
  180. //NAPOMENA samo stavate vo SCM toa sto vi izleguva ili tie raboti znaci ako vi e warning cheat tamo akde sto e porakata stavate naprimer
  181. if(VLWarning == 1)
  182. {
  183. pa go stavate ova tuka SCM(playerid, -1, i sto pisue taka
  184. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement