Advertisement
Guest User

ah2

a guest
Jan 5th, 2024
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.66 KB | None | 0 0
  1. CMD:ah(playerid, params[])
  2. {
  3. if(UlogovanProvera[playerid] == 0) return SCM(playerid, NS_ORANGE,"* Morate se ulogovati da bi koristili ovu komandu!");
  4. if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pTA] < 1) return SCM(playerid, NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande!");
  5. new str[2048], orgperm[32], gmperm[32], adminperm[32], rpeperm[32], vipperm[32], statperm[32], statperm2[32], nagperm[32], srwperm[32], nameperm[32], crperm[32], crperm2[32], properm[32], vehperm[32], eventperm[32], jobpermission[32];
  6. ///////////////////////////////////////
  7. if(PlayerInfo[playerid][pApermlider] == 1) { orgperm = "- Faction Permission"; } else if(PlayerInfo[playerid][pApermlider] == 0) { orgperm = ""; }
  8. if(PlayerInfo[playerid][pApermgm] == 1) { gmperm = "- GameMaster Permission"; } else if(PlayerInfo[playerid][pApermgm] == 0) { gmperm = ""; }
  9. if(PlayerInfo[playerid][pApermadmin] == 1) { adminperm = "- Admin Permission"; } else if(PlayerInfo[playerid][pApermadmin] == 0) { adminperm = ""; }
  10. if(PlayerInfo[playerid][pApermrpe] == 1) { rpeperm = "- RPE Permission"; } else if(PlayerInfo[playerid][pApermrpe] == 0) { rpeperm = ""; }
  11. if(PlayerInfo[playerid][pApermvip] == 1) { vipperm = "- V.I.P Permission"; } else if(PlayerInfo[playerid][pApermvip] == 0) { vipperm = ""; }
  12. if(PlayerInfo[playerid][pApermstat] == 1) { statperm = "- Stats Permission"; } else if(PlayerInfo[playerid][pApermstat] == 0) { statperm = ""; }
  13. if(PlayerInfo[playerid][pApermstat2] == 1) { statperm2 = "- Stats 2 Permission"; } else if(PlayerInfo[playerid][pApermstat2] == 0) { statperm2 = ""; }
  14. if(PlayerInfo[playerid][pApermsvima] == 1) { nagperm = "- Nagrade Permission"; } else if(PlayerInfo[playerid][pApermsvima] == 0) { nagperm = ""; }
  15. if(PlayerInfo[playerid][pApermsrv] == 1) { srwperm = "- Server Permission"; } else if(PlayerInfo[playerid][pApermsrv] == 0) { srwperm = ""; }
  16. if(PlayerInfo[playerid][pApermname] == 1) { nameperm = "- Changename Permission"; } else if(PlayerInfo[playerid][pApermname] == 0) { nameperm = ""; }
  17. if(PlayerInfo[playerid][pApermcr] == 1) { crperm = "- Dynamic Create Permission"; } else if(PlayerInfo[playerid][pApermcr] == 0) { crperm = ""; }
  18. if(PlayerInfo[playerid][pApermcr2] == 1) { crperm2 = "- Dynamic Create 2 Permission"; } else if(PlayerInfo[playerid][pApermcr2] == 0) { crperm2 = ""; }
  19. if(PlayerInfo[playerid][pApermrek] == 1) { properm = "- Promoter Permission"; } else if(PlayerInfo[playerid][pApermrek] == 0) { properm = ""; }
  20. if(PlayerInfo[playerid][pApermveh] == 1) { vehperm = "- Vehicle Permission"; } else if(PlayerInfo[playerid][pApermveh] == 0) { vehperm = ""; }
  21. if(PlayerInfo[playerid][pApermevent] == 1) { eventperm = "- Event Permission"; } else if(PlayerInfo[playerid][pApermevent] == 0) { eventperm = ""; }
  22. if(PlayerInfo[playerid][pAjobperm] == 1) { jobpermission = "- Job Permission"; } else if(PlayerInfo[playerid][pAjobperm] == 0) { jobpermission = ""; }
  23. ///////////////////////////////////////////////////
  24. format( str, sizeof( str ), "Test Admin\nAdmin Level 1\nAdmin Level 2\nAdmin Level 3\nAdmin Level 4\nAdmin Level 5\nAdmin Level 6\nVlasnik komande\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", orgperm, gmperm, adminperm, rpeperm, vipperm, statperm, statperm2, nagperm, srwperm, nameperm, crperm, crperm2, properm, vehperm, eventperm, jobpermission);
  25. Dialog_Show(playerid, ah1, DIALOG_STYLE_LIST, ""BELA"Admin Help", str, "Odaberi", "Izadji");
  26. return 1;
  27. }
  28. Dialog:ah1(playerid, response, listitem, inputtext[])
  29. {
  30. new info[4096];
  31. if(response)
  32. {
  33. switch(listitem)
  34. {
  35. case 0:
  36. {
  37. if (PlayerInfo[playerid][pTA] < 1 || PlayerInfo[playerid][pAdmin] < 1)
  38. {
  39. strcat(info, ""BELA"/ah /a /adminduty /altchat /ateleport /avozilo /fixveh /freeze /g /ga /goto /kick /kill\n", sizeof(info));
  40. strcat(info, ""BELA"/zatvori /jpack /lp /rtc /specon /specoff /staffstats /unfreeze /name /alias /apravila /tpveh\n", sizeof(info));
  41. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Test Admin komande", info, "Zatvori", "");
  42. }
  43. }
  44. case 1:
  45. {
  46. if (PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  47. {
  48. strcat(info, ""BELA"/specon /specoff /name /goto /osamari /freeze /nitro /kaznjeni /odg /pc\n", sizeof(info));
  49. strcat(info, ""BELA"/oslobodi /adminduty /kick /kill /gethere /proveri /podesihp /podesipancir /ban /unban\n", sizeof(info));
  50. strcat(info, ""BELA"/portvozilo /alias /rtcveh /staffstats /jpack /rtcradius\n", sizeof(info));
  51. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 1 komande", info, "Zatvori", "");
  52. }
  53. }
  54. case 2:
  55. {
  56. if (PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  57. {
  58. strcat(info, ""BELA"/banip /offban /warn /offwarn /disarm /aizbaci /uvozilo /apu /resetattach\n", sizeof(info));
  59. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 2 komande", info, "Zatvori", "");
  60. }
  61. }
  62. case 3:
  63. {
  64. if (PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  65. {
  66. strcat(info, ""BELA"/portfirma /portkuca /portstan /portvikendica /mutirajg (/muteg) /unmutirajg (/unmuteg)\n", sizeof(info));
  67. strcat(info, ""BELA"/bojavozila /skiniwarn /banad (/mutead) /unbanad (/unmutead) /unbanip /mute /unmute /aspawn\n", sizeof(info));
  68. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 3 komande", info, "Zatvori", "");
  69. }
  70. }
  71. case 4:
  72. {
  73. if (PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  74. {
  75. strcat(info, ""BELA"/bandjubre /unban /aocistidosije /zatvorioff /aram /banasq (/muteasq) /unbanasq (/unmuteasq)\n", sizeof(info));
  76. strcat(info, ""BELA"/ao /serverime /settime /setweather /portkapija /uzmiip /zauzimaci /undisarm\n", sizeof(info));
  77. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 4 komande", info, "Zatvori", "");
  78. }
  79. }
  80. case 5:
  81. {
  82. if (PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  83. {
  84. strcat(info, ""BELA"/artc /dajdozvolu /oduzmidozvolu /sviheal /svipancir /asvima /tpcreate /avprodaj /lc /dnovac /ajobs\n", sizeof(info));
  85. strcat(info, ""BELA"/createrent /editrent /creategate /deletegate /closestgate /wlfine /rpc /lock /unlock /setskin\n", sizeof(info));
  86. strcat(info, ""BELA"/saveaccounts (/sacuvajacounte) /setvw (/posaljiafk) /pskill /aveh /portrent /udjiuorg /fine /aoruzije\n", sizeof(info));
  87. strcat(info, ""BELA"/avehdelite /askiniorgkaznu /setrankname /skininovac /portsalon /avparkiraj /amparkiraj /amprodaj /portulicu\n", sizeof(info));
  88. strcat(info, ""BELA"/aleprodaj /aleparkiraj /alprodaj /aplparkiraj /serverpanel /custombroj /offcustombroj /apermission /specf\n", sizeof(info));
  89. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 5 komande", info, "Zatvori", "");
  90. }
  91. }
  92. case 6:
  93. {
  94. if (PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  95. {
  96. strcat(info, ""BELA"/dajsveskillove /skinisveskillove /avobrisi /amobrisi /daj2kljuca /astuck /skininovac /kinfo /vinfo /finfo /sinfo /dajpasos\n", sizeof(info));
  97. strcat(info, ""BELA"/resetmoney /podesinovac /incar /gore /dole /tkordinate /agorivo /dajpayday /dajpaydaysvima /achangemail /offachangemail\n", sizeof(info));
  98. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 6 komande", info, "Zatvori", "");
  99. }
  100. }
  101. case 7:
  102. {
  103. if (PlayerInfo[playerid][pVlasnik] < 1 && PlayerInfo[playerid][pDeveloper] < 1 && PlayerInfo[playerid][pSuVlasnik] < 1 && PlayerInfo[playerid][pKurcinela] < 1) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
  104. {
  105. strcat(info, ""BELA"/setrank /deleterank /vila /tempban /serverpanel /serverresart (Samo Goku) /stoprestart\n", sizeof(info));
  106. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Vlasnik komande", info, "Zatvori", "");
  107. }
  108. }
  109. //case 8: { SCM(playerid, NS_ORANGE,"* Ne mozes izabrati ovu stavku!!"); }
  110. case 9:
  111. {
  112. if(PlayerInfo[playerid][pApermlider] >= 1)
  113. {
  114. strcat(info, ""BELA"/factionedit /postavilidera /postavilideraoff /createorgsef /editorgsef /deleteorgsef /createoruzaonicu /deleteoruzaonicu\n", sizeof(info));
  115. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Faction Permission", info, "Zatvori", "");
  116. }
  117. }
  118. case 10:
  119. {
  120. if (PlayerInfo[playerid][pApermgm] >= 1)
  121. {
  122. strcat(info, ""BELA"/postavigm /staffstats /offdutygm\n\n", sizeof(info));
  123. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"GameMaster Permission", info, "Zatvori", "");
  124. }
  125. }
  126. case 11:
  127. {
  128. if (PlayerInfo[playerid][pApermadmin] >= 1)
  129. {
  130. strcat(info, ""BELA"/dajtestadmina /postaviadmina /apin /offdutyadmins /offdutygm\n\n", sizeof(info));
  131. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Permission", info, "Zatvori", "");
  132. }
  133. }
  134. case 12:
  135. {
  136. if (PlayerInfo[playerid][pApermrpe] >= 1)
  137. {
  138. strcat(info, ""BELA"/postavirpe\n\n", sizeof(info));
  139. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"RPE Permission", info, "Zatvori", "");
  140. }
  141. }
  142. case 13:
  143. {
  144. if (PlayerInfo[playerid][pApermvip] >= 1)
  145. {
  146. strcat(info, ""BELA"/postavivipa /suspendvipa /unsuspendvipa\n\n", sizeof(info));
  147. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"V.I.P Permission", info, "Zatvori", "");
  148. }
  149. }
  150. case 14:
  151. {
  152. if (PlayerInfo[playerid][pApermstat] >= 1)
  153. {
  154. strcat(info, ""BELA"/pstats\n\n", sizeof(info));
  155. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Stats Permission", info, "Zatvori", "");
  156. }
  157. }
  158. case 15:
  159. {
  160. if (PlayerInfo[playerid][pApermstat2] >= 1)
  161. {
  162. strcat(info, ""BELA"/achangepass /pstats (full)\n\n", sizeof(info));
  163. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Stats 2 Permission", info, "Zatvori", "");
  164. }
  165. }
  166. case 16:
  167. {
  168. if (PlayerInfo[playerid][pApermsvima] >= 1)
  169. {
  170. strcat(info, ""BELA"/svima\n\n", sizeof(info));
  171. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Nagrade Permission", info, "Zatvori", "");
  172. }
  173. }
  174. case 17:
  175. {
  176. if (PlayerInfo[playerid][pApermsrv] >= 1)
  177. {
  178. strcat(info, ""BELA"/spodesavanja /lockserver /unlockserver /ajobpanel\n\n", sizeof(info));
  179. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Server Permission", info, "Zatvori", "");
  180. }
  181. }
  182. case 18:
  183. {
  184. if (PlayerInfo[playerid][pApermname] >= 1)
  185. {
  186. strcat(info, ""BELA"/changename\n\n", sizeof(info));
  187. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Changename Permission", info, "Zatvori", "");
  188. }
  189. }
  190. case 19:
  191. {
  192. if (PlayerInfo[playerid][pApermcr] >= 1)
  193. {
  194. strcat(info, ""BELA"/kreirajkucu /kreirajstan /kreirajfirmu /kreirajvikendicu /kreirajulicu /eulicu\n", sizeof(info));
  195. strcat(info, ""BELA"/obrisikucu /obrisistan /obrisivikendicu /obrisifirmu /deleteulicu /ekucu /estan /evikendicu\n", sizeof(info));
  196. strcat(info, ""BELA"/efirmu /efirmu2 /aprodajkucu /aprodajstan /aprodajfirmu /aprodajvikendicu\n\n", sizeof(info));
  197. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Dynamic Create Permission", info, "Zatvori", "");
  198. }
  199. }
  200. case 20:
  201. {
  202. if (PlayerInfo[playerid][pApermcr2] >= 1)
  203. {
  204. strcat(info, ""BELA"/createsalon /deletesalon /editsalon /tpcreate /deleteobjekt /createobjekt /actorpanel /createdynamicpickup (SAMO PO POTREBI)\n\n", sizeof(info));
  205. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Dynamic Create 2 Permission", info, "Zatvori", "");
  206. }
  207. }
  208. case 21:
  209. {
  210. if (PlayerInfo[playerid][pApermrek] >= 1)
  211. {
  212. strcat(info, ""BELA"/postavipromotera\n\n", sizeof(info));
  213. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Promoter Permission", info, "Zatvori", "");
  214. }
  215. }
  216. case 22:
  217. {
  218. if (PlayerInfo[playerid][pApermveh] >= 1)
  219. {
  220. strcat(info, ""BELA"/setvehmodel /unikatnimotor /unikatnoplovilo /unikatnaletelica\n\n", sizeof(info));
  221. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Vehicle Permission", info, "Zatvori", "");
  222. }
  223. }
  224. case 23:
  225. {
  226. if (PlayerInfo[playerid][pApermevent] >= 1)
  227. {
  228. strcat(info, ""BELA"/ucitajevent /zaustavievent /eventcount\n\n", sizeof(info));
  229. SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Event Permission", info, "Zatvori", "");
  230. }
  231. }
  232. }
  233. }
  234. return 1;
  235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement