Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:ah(playerid, params[])
- {
- if(UlogovanProvera[playerid] == 0) return SCM(playerid, NS_ORANGE,"* Morate se ulogovati da bi koristili ovu komandu!");
- if(PlayerInfo[playerid][pAdmin] < 1 && PlayerInfo[playerid][pTA] < 1) return SCM(playerid, NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande!");
- 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];
- ///////////////////////////////////////
- if(PlayerInfo[playerid][pApermlider] == 1) { orgperm = "- Faction Permission"; } else if(PlayerInfo[playerid][pApermlider] == 0) { orgperm = ""; }
- if(PlayerInfo[playerid][pApermgm] == 1) { gmperm = "- GameMaster Permission"; } else if(PlayerInfo[playerid][pApermgm] == 0) { gmperm = ""; }
- if(PlayerInfo[playerid][pApermadmin] == 1) { adminperm = "- Admin Permission"; } else if(PlayerInfo[playerid][pApermadmin] == 0) { adminperm = ""; }
- if(PlayerInfo[playerid][pApermrpe] == 1) { rpeperm = "- RPE Permission"; } else if(PlayerInfo[playerid][pApermrpe] == 0) { rpeperm = ""; }
- if(PlayerInfo[playerid][pApermvip] == 1) { vipperm = "- V.I.P Permission"; } else if(PlayerInfo[playerid][pApermvip] == 0) { vipperm = ""; }
- if(PlayerInfo[playerid][pApermstat] == 1) { statperm = "- Stats Permission"; } else if(PlayerInfo[playerid][pApermstat] == 0) { statperm = ""; }
- if(PlayerInfo[playerid][pApermstat2] == 1) { statperm2 = "- Stats 2 Permission"; } else if(PlayerInfo[playerid][pApermstat2] == 0) { statperm2 = ""; }
- if(PlayerInfo[playerid][pApermsvima] == 1) { nagperm = "- Nagrade Permission"; } else if(PlayerInfo[playerid][pApermsvima] == 0) { nagperm = ""; }
- if(PlayerInfo[playerid][pApermsrv] == 1) { srwperm = "- Server Permission"; } else if(PlayerInfo[playerid][pApermsrv] == 0) { srwperm = ""; }
- if(PlayerInfo[playerid][pApermname] == 1) { nameperm = "- Changename Permission"; } else if(PlayerInfo[playerid][pApermname] == 0) { nameperm = ""; }
- if(PlayerInfo[playerid][pApermcr] == 1) { crperm = "- Dynamic Create Permission"; } else if(PlayerInfo[playerid][pApermcr] == 0) { crperm = ""; }
- if(PlayerInfo[playerid][pApermcr2] == 1) { crperm2 = "- Dynamic Create 2 Permission"; } else if(PlayerInfo[playerid][pApermcr2] == 0) { crperm2 = ""; }
- if(PlayerInfo[playerid][pApermrek] == 1) { properm = "- Promoter Permission"; } else if(PlayerInfo[playerid][pApermrek] == 0) { properm = ""; }
- if(PlayerInfo[playerid][pApermveh] == 1) { vehperm = "- Vehicle Permission"; } else if(PlayerInfo[playerid][pApermveh] == 0) { vehperm = ""; }
- if(PlayerInfo[playerid][pApermevent] == 1) { eventperm = "- Event Permission"; } else if(PlayerInfo[playerid][pApermevent] == 0) { eventperm = ""; }
- if(PlayerInfo[playerid][pAjobperm] == 1) { jobpermission = "- Job Permission"; } else if(PlayerInfo[playerid][pAjobperm] == 0) { jobpermission = ""; }
- ///////////////////////////////////////////////////
- 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);
- Dialog_Show(playerid, ah1, DIALOG_STYLE_LIST, ""BELA"Admin Help", str, "Odaberi", "Izadji");
- return 1;
- }
- Dialog:ah1(playerid, response, listitem, inputtext[])
- {
- new info[4096];
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- if (PlayerInfo[playerid][pTA] < 1 || PlayerInfo[playerid][pAdmin] < 1)
- {
- strcat(info, ""BELA"/ah /a /adminduty /altchat /ateleport /avozilo /fixveh /freeze /g /ga /goto /kick /kill\n", sizeof(info));
- strcat(info, ""BELA"/zatvori /jpack /lp /rtc /specon /specoff /staffstats /unfreeze /name /alias /apravila /tpveh\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Test Admin komande", info, "Zatvori", "");
- }
- }
- case 1:
- {
- if (PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
- {
- strcat(info, ""BELA"/specon /specoff /name /goto /osamari /freeze /nitro /kaznjeni /odg /pc\n", sizeof(info));
- strcat(info, ""BELA"/oslobodi /adminduty /kick /kill /gethere /proveri /podesihp /podesipancir /ban /unban\n", sizeof(info));
- strcat(info, ""BELA"/portvozilo /alias /rtcveh /staffstats /jpack /rtcradius\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 1 komande", info, "Zatvori", "");
- }
- }
- case 2:
- {
- if (PlayerInfo[playerid][pAdmin] < 2) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
- {
- strcat(info, ""BELA"/banip /offban /warn /offwarn /disarm /aizbaci /uvozilo /apu /resetattach\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 2 komande", info, "Zatvori", "");
- }
- }
- case 3:
- {
- if (PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
- {
- strcat(info, ""BELA"/portfirma /portkuca /portstan /portvikendica /mutirajg (/muteg) /unmutirajg (/unmuteg)\n", sizeof(info));
- strcat(info, ""BELA"/bojavozila /skiniwarn /banad (/mutead) /unbanad (/unmutead) /unbanip /mute /unmute /aspawn\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 3 komande", info, "Zatvori", "");
- }
- }
- case 4:
- {
- if (PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
- {
- strcat(info, ""BELA"/bandjubre /unban /aocistidosije /zatvorioff /aram /banasq (/muteasq) /unbanasq (/unmuteasq)\n", sizeof(info));
- strcat(info, ""BELA"/ao /serverime /settime /setweather /portkapija /uzmiip /zauzimaci /undisarm\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 4 komande", info, "Zatvori", "");
- }
- }
- case 5:
- {
- if (PlayerInfo[playerid][pAdmin] < 5) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
- {
- strcat(info, ""BELA"/artc /dajdozvolu /oduzmidozvolu /sviheal /svipancir /asvima /tpcreate /avprodaj /lc /dnovac /ajobs\n", sizeof(info));
- strcat(info, ""BELA"/createrent /editrent /creategate /deletegate /closestgate /wlfine /rpc /lock /unlock /setskin\n", sizeof(info));
- strcat(info, ""BELA"/saveaccounts (/sacuvajacounte) /setvw (/posaljiafk) /pskill /aveh /portrent /udjiuorg /fine /aoruzije\n", sizeof(info));
- strcat(info, ""BELA"/avehdelite /askiniorgkaznu /setrankname /skininovac /portsalon /avparkiraj /amparkiraj /amprodaj /portulicu\n", sizeof(info));
- strcat(info, ""BELA"/aleprodaj /aleparkiraj /alprodaj /aplparkiraj /serverpanel /custombroj /offcustombroj /apermission /specf\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 5 komande", info, "Zatvori", "");
- }
- }
- case 6:
- {
- if (PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid, NS_ORANGE,"* Nemate ovlascenje za upotrebu ove komande!");
- {
- strcat(info, ""BELA"/dajsveskillove /skinisveskillove /avobrisi /amobrisi /daj2kljuca /astuck /skininovac /kinfo /vinfo /finfo /sinfo /dajpasos\n", sizeof(info));
- strcat(info, ""BELA"/resetmoney /podesinovac /incar /gore /dole /tkordinate /agorivo /dajpayday /dajpaydaysvima /achangemail /offachangemail\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Level 6 komande", info, "Zatvori", "");
- }
- }
- case 7:
- {
- 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!");
- {
- strcat(info, ""BELA"/setrank /deleterank /vila /tempban /serverpanel /serverresart (Samo Goku) /stoprestart\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Vlasnik komande", info, "Zatvori", "");
- }
- }
- //case 8: { SCM(playerid, NS_ORANGE,"* Ne mozes izabrati ovu stavku!!"); }
- case 9:
- {
- if(PlayerInfo[playerid][pApermlider] >= 1)
- {
- strcat(info, ""BELA"/factionedit /postavilidera /postavilideraoff /createorgsef /editorgsef /deleteorgsef /createoruzaonicu /deleteoruzaonicu\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Faction Permission", info, "Zatvori", "");
- }
- }
- case 10:
- {
- if (PlayerInfo[playerid][pApermgm] >= 1)
- {
- strcat(info, ""BELA"/postavigm /staffstats /offdutygm\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"GameMaster Permission", info, "Zatvori", "");
- }
- }
- case 11:
- {
- if (PlayerInfo[playerid][pApermadmin] >= 1)
- {
- strcat(info, ""BELA"/dajtestadmina /postaviadmina /apin /offdutyadmins /offdutygm\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Admin Permission", info, "Zatvori", "");
- }
- }
- case 12:
- {
- if (PlayerInfo[playerid][pApermrpe] >= 1)
- {
- strcat(info, ""BELA"/postavirpe\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"RPE Permission", info, "Zatvori", "");
- }
- }
- case 13:
- {
- if (PlayerInfo[playerid][pApermvip] >= 1)
- {
- strcat(info, ""BELA"/postavivipa /suspendvipa /unsuspendvipa\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"V.I.P Permission", info, "Zatvori", "");
- }
- }
- case 14:
- {
- if (PlayerInfo[playerid][pApermstat] >= 1)
- {
- strcat(info, ""BELA"/pstats\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Stats Permission", info, "Zatvori", "");
- }
- }
- case 15:
- {
- if (PlayerInfo[playerid][pApermstat2] >= 1)
- {
- strcat(info, ""BELA"/achangepass /pstats (full)\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Stats 2 Permission", info, "Zatvori", "");
- }
- }
- case 16:
- {
- if (PlayerInfo[playerid][pApermsvima] >= 1)
- {
- strcat(info, ""BELA"/svima\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Nagrade Permission", info, "Zatvori", "");
- }
- }
- case 17:
- {
- if (PlayerInfo[playerid][pApermsrv] >= 1)
- {
- strcat(info, ""BELA"/spodesavanja /lockserver /unlockserver /ajobpanel\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Server Permission", info, "Zatvori", "");
- }
- }
- case 18:
- {
- if (PlayerInfo[playerid][pApermname] >= 1)
- {
- strcat(info, ""BELA"/changename\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Changename Permission", info, "Zatvori", "");
- }
- }
- case 19:
- {
- if (PlayerInfo[playerid][pApermcr] >= 1)
- {
- strcat(info, ""BELA"/kreirajkucu /kreirajstan /kreirajfirmu /kreirajvikendicu /kreirajulicu /eulicu\n", sizeof(info));
- strcat(info, ""BELA"/obrisikucu /obrisistan /obrisivikendicu /obrisifirmu /deleteulicu /ekucu /estan /evikendicu\n", sizeof(info));
- strcat(info, ""BELA"/efirmu /efirmu2 /aprodajkucu /aprodajstan /aprodajfirmu /aprodajvikendicu\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Dynamic Create Permission", info, "Zatvori", "");
- }
- }
- case 20:
- {
- if (PlayerInfo[playerid][pApermcr2] >= 1)
- {
- strcat(info, ""BELA"/createsalon /deletesalon /editsalon /tpcreate /deleteobjekt /createobjekt /actorpanel /createdynamicpickup (SAMO PO POTREBI)\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Dynamic Create 2 Permission", info, "Zatvori", "");
- }
- }
- case 21:
- {
- if (PlayerInfo[playerid][pApermrek] >= 1)
- {
- strcat(info, ""BELA"/postavipromotera\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Promoter Permission", info, "Zatvori", "");
- }
- }
- case 22:
- {
- if (PlayerInfo[playerid][pApermveh] >= 1)
- {
- strcat(info, ""BELA"/setvehmodel /unikatnimotor /unikatnoplovilo /unikatnaletelica\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Vehicle Permission", info, "Zatvori", "");
- }
- }
- case 23:
- {
- if (PlayerInfo[playerid][pApermevent] >= 1)
- {
- strcat(info, ""BELA"/ucitajevent /zaustavievent /eventcount\n\n", sizeof(info));
- SPD(playerid, 26, DIALOG_STYLE_MSGBOX, ""BELA"Event Permission", info, "Zatvori", "");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement