if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new alevel = PlayerInfo[playerid][pAdmin];
if(alevel > 0)
{
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
if(alevel >= 1)
{
SendClientMessage(playerid, SCOLOR_CYAN, "Server Moderator : /listguns /check /spec /setint /setvw /mute /nmute (/a)dmin /warnings /ch /kcc /senddmv");
return 1;
}
if(alevel >= 2)
{
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /skydive /bigears /freeze /unfreeze /slap /warn /cnn /rmute /goto /sendtols");
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /refund /tuteject /hoseject /fuelcars /setjob /forcetut");
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /admute");
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /listmuted /listmasked /kick /ban /aduty /adutyoff /checkprison /afgate /agate");
}
if(alevel >= 3)
{
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /noooc /fourdive /jail /prison /fine /startlotto /ramps /setcarhp /sorry /rhv");
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /getcar /rav /mark /goto /gethere /oldcar /pann /mole /had /ipcheck /countdown /disarm /nohospital /setaccent");
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /rhw /cp /mole /had /ipcheck /countdown /disarm /nohospital /setaccent /acolorcar /setgas /setcarint /setcarvw");
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /fws /atazer /amask");
}
if(alevel >= 4)
{
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /duel /getip /setage");
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /setgunskill /givemoney /setmoney /setstat /setfightstyle /setanim /givecookieall /givegoldbarall");
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setplayercolor /setplayerwanted /load /adivorce /makeircadmin /destroycar");
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /destroycars /eventhelp /setcrime /givecookie /gotobluebus /gotoblackbus /fartbomb");
}
if(alevel >= 1337)
{
SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /weather /weatherall /tod /dedit /pointtime /adetain");
SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /gotocar /pban /unban /banaccount /gotocar /wl /setcolor /banip /unbanip /deleteaccount /rangeban");
SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /giftbox /editpoint /setgoldbars /givegoldbar /goincar /fire /re(sources)");
}
if(alevel >= 1338)
{
SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /hqcreate /hqdelete /ganghqid /createfamgate /deletefamgate /editfamgate /famgateeditor /famegateid /fedit");
SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /createfacgate /deletefacgate /facgateeditor /editfacgate /facgateid /editfaction /editfactionpay /createfcar /deletefcar");
SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /creategate /deletegate /editgate /gateid /acceptrequest");
}
if(alevel >= 1339)
{
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /bizint /createbiz /deletebiz /bizlevel /bizprice /biztype /bizprods /movebiz /clearbiz /setbizowner /gotobiz /lockbiz");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /houseint /chouseint /createhouse /deletehouse /houselevel /houseprice /movehouse /clearhouse /sethouseowner /gotohouse");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createfamily /deletefamily");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createbuilding /deletebuilding /buildingname /lockbuilding /movebuilding /buildingvw /makebuildingvip /sbm(setbuildingmusic) /gotobuilding");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createentrance /editentrance /entranceid /deleteentrance /gotoentrance ");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategarage /deletegarage /editgarage /gotogarage /garageid /gotogarage");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmotel /deletemotel /movemotel /motelvw /lockmotel /makemotelvip /motelname /gotomotel");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createcar /deletecar /setcarinfo /createpcar /deletepcar /parkpcar");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createdrivethru /deletedrivethru /editdrivethru");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createHSS /deleteHSS /hssignid");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmapicon /editmapicon /nearmapicon");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createMAPB /deleteMAPB");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createinfoboard /deleteinfoboard /setinfoboardstring");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategstation /deletegstation");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createoocshop /deleteoocshop");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /gcam - To Create Speed Camera! [You have to login with rcon]");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createpickup");
}
if(alevel >= 99998)
{
SendClientMessage(playerid, SCOLOR_MARKER,"Executive Administrator: /payday /oprison /lethimtalk");
}
if(alevel >= 99999)
{
SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /shawntermination /forcerelog /makeleader /savechars /makemoneybag");
SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /deletebag /deletebags /makehelper");
}
if(alevel >= 100000)
{
SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /server /makeadmin /deleteaccount /setbankreload /makebanappealer /makegangmod /makespecops");
SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /makemapper /makedev /maketester /makevip");
}
if(PlayerInfo[playerid][pBanAppealer])
{
SendClientMessage(playerid, COLOR_WHITE, "Ban Appealer: /unban /unbanip");
}
if(PlayerInfo[playerid][pGangMod])
{
SendClientMessage(playerid, COLOR_WHITE, "Gang Moderator: /fedit /fstrike /fsetstrike");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
}
else
{
SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/ah 1", true) == 0) { if(alevel >= 1) return SendClientMessage(playerid, "You are not admin level 1"); { SendClientMessage(playerid, SCOLOR_CYAN, "Server Moderator : /listguns /check /spec /setint /setvw /mute /nmute (/a)dmin /warnings /ch /kcc /senddmv"); } } if(strcmp(cmd,"/ah 2",true ) == 0) { if(alevel >= 2) { SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /skydive /bigears /freeze /unfreeze /slap /warn /cnn /rmute /goto /sendtols"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /refund /tuteject /hoseject /fuelcars /setjob /forcetut"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /admute"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /listmuted /listmasked /kick /ban /aduty /adutyoff /checkprison /afgate /agate"); } } // if player is level 3 // do same as i did on up cmds // after do lvl 3-4-5 etc // at /ahelp just send client message that they have to write /ah [1-[lastadmin lvl] for their cmds if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0) { if(IsPlayerConnected(playerid)) { new alevel = PlayerInfo[playerid][pAdmin]; if(alevel > 0) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); if(alevel >= 1) { SendClientMessage(playerid, COLOR_GREEN," Use Command /ah 1 for admin lvl commands"); return 1; } if(alevel >= 2) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 2 for admin lvl 2 commands"); } if(alevel >= 3) { SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /noooc /fourdive /jail /prison /fine /startlotto /ramps /setcarhp /sorry /rhv"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /getcar /rav /mark /goto /gethere /oldcar /pann /mole /had /ipcheck /countdown /disarm /nohospital /setaccent"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /rhw /cp /mole /had /ipcheck /countdown /disarm /nohospital /setaccent /acolorcar /setgas /setcarint /setcarvw"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /fws /atazer /amask"); } if(alevel >= 4) { SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /duel /getip /setage"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /setgunskill /givemoney /setmoney /setstat /setfightstyle /setanim /givecookieall /givegoldbarall"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setplayercolor /setplayerwanted /load /adivorce /makeircadmin /destroycar"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /destroycars /eventhelp /setcrime /givecookie /gotobluebus /gotoblackbus /fartbomb"); } if(alevel >= 1337) { SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /weather /weatherall /tod /dedit /pointtime /adetain"); SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /gotocar /pban /unban /banaccount /gotocar /wl /setcolor /banip /unbanip /deleteaccount /rangeban"); SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /giftbox /editpoint /setgoldbars /givegoldbar /goincar /fire /re(sources)"); } if(alevel >= 1338) { SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /hqcreate /hqdelete /ganghqid /createfamgate /deletefamgate /editfamgate /famgateeditor /famegateid /fedit"); SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /createfacgate /deletefacgate /facgateeditor /editfacgate /facgateid /editfaction /editfactionpay /createfcar /deletefcar"); SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /creategate /deletegate /editgate /gateid /acceptrequest"); } if(alevel >= 1339) { SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /bizint /createbiz /deletebiz /bizlevel /bizprice /biztype /bizprods /movebiz /clearbiz /setbizowner /gotobiz /lockbiz"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /houseint /chouseint /createhouse /deletehouse /houselevel /houseprice /movehouse /clearhouse /sethouseowner /gotohouse"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createfamily /deletefamily"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createbuilding /deletebuilding /buildingname /lockbuilding /movebuilding /buildingvw /makebuildingvip /sbm(setbuildingmusic) /gotobuilding"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createentrance /editentrance /entranceid /deleteentrance /gotoentrance "); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategarage /deletegarage /editgarage /gotogarage /garageid /gotogarage"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmotel /deletemotel /movemotel /motelvw /lockmotel /makemotelvip /motelname /gotomotel"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createcar /deletecar /setcarinfo /createpcar /deletepcar /parkpcar"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createdrivethru /deletedrivethru /editdrivethru"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createHSS /deleteHSS /hssignid"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmapicon /editmapicon /nearmapicon"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createMAPB /deleteMAPB"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createinfoboard /deleteinfoboard /setinfoboardstring"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategstation /deletegstation"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createoocshop /deleteoocshop"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /gcam - To Create Speed Camera! [You have to login with rcon]"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createpickup"); } if(alevel >= 99998) { SendClientMessage(playerid, SCOLOR_MARKER,"Executive Administrator: /payday /oprison /lethimtalk"); } if(alevel >= 99999) { SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /shawntermination /forcerelog /makeleader /savechars /makemoneybag"); SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /deletebag /deletebags /makehelper"); } if(alevel >= 100000) { SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /server /makeadmin /deleteaccount /setbankreload /makebanappealer /makegangmod /makespecops"); SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /makemapper /makedev /maketester /makevip"); } if(PlayerInfo[playerid][pBanAppealer]) { SendClientMessage(playerid, COLOR_WHITE, "Ban Appealer: /unban /unbanip"); } if(PlayerInfo[playerid][pGangMod]) { SendClientMessage(playerid, COLOR_WHITE, "Gang Moderator: /fedit /fstrike /fsetstrike"); } SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); } else { SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !"); }
So you want when a player types /ahelp it will say "press /ah [lvl] (admin level) for example /ah 1 - and it will show admin lvl 1 cmds ? |
You should look about a tutorial for CMD-Processors |
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(8571) : error 004: function "FixHour" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11287) : error 017: undefined symbol "SenderName"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11288) : error 017: undefined symbol "SendNearbyMessage"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11293) : error 017: undefined symbol "StopAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11320) : error 017: undefined symbol "PlayAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11345) : error 017: undefined symbol "PlayAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11481) : error 017: undefined symbol "PlayAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11506) : error 017: undefined symbol "PlayAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11531) : error 017: undefined symbol "PlayAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(11557) : error 017: undefined symbol "PlayAudioEx"
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(13027) : error 004: function "ProxDetector" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(15452) : error 004: function "ProxDetector" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(15524) : error 004: function "ProxDetector" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(16830) : error 004: function "ProxDetector" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(16843) : error 004: function "ProxDetector" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18198) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18225) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18252) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18279) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18306) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18333) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18360) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18387) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18414) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(18441) : error 004: function "PurchaseItem" is not implemented
C:\Users\xavie\Desktop\Classified Gaming Roleplay\gamemodes\EGRP.pwn(20527) : error 004: function "PurchaseItem" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new alevel = PlayerInfo[playerid][pAdmin];
if(alevel > 0)
{
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
if(alevel > 1)
{
SendClientMessage(playerid, COLOR_GREEN," Use Command /ah 1 for admin commands");
return 1;
}
if(alevel > 2)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-2 for admin commands");
return 1;
}
if(alevel >= 3)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-3 for admin commands");
return 1;
}
if(alevel >= 4)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-4 for admin commands");
return 1;
}
if(alevel >= 5)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-5 for admin commands");
return 1;
}
if(alevel >= 6)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-6 for admin commands");
return 1;
}
if(alevel >= 7)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-7 for admin commands");
return 1;
}
if(alevel >= 8)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-8 for admin commands");
return 1;
}
if(alevel >= 9)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-9 for admin commands");
return 1;
}
if(alevel >= 10)
{
SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-10 for admin commands");
return 1;
}
if(strcmp(cmd, "/ah 1", true) == 0)
{
if(alevel >= 1) return SendClientMessage(playerid, "You are not admin");
{
SendClientMessage(playerid, SCOLOR_CYAN, "Server Moderator : /listguns /check /spec /setint /setvw /mute /nmute (/a)dmin /warnings /ch /kcc /senddmv");
}
}
if(strcmp(cmd, "/ah 2", true) == 0)
{
if(alevel >= 2)
{
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /skydive /bigears /freeze /unfreeze /slap /warn /cnn /rmute /goto /sendtols");
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /refund /tuteject /hoseject /fuelcars /setjob /forcetut");
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /admute");
SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /listmuted /listmasked /kick /ban /aduty /adutyoff /checkprison /afgate /agate");
}
}
if(strcmp(cmd, "/ah 3", true) == 0)
{
if(alevel >= 3)
{
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /noooc /fourdive /jail /prison /fine /startlotto /ramps /setcarhp /sorry /rhv");
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /getcar /rav /mark /goto /gethere /oldcar /pann /mole /had /ipcheck /countdown /disarm /nohospital /setaccent");
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /rhw /cp /mole /had /ipcheck /countdown /disarm /nohospital /setaccent /acolorcar /setgas /setcarint /setcarvw");
SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /fws /atazer /amask");
}
}
if(strcmp(cmd, "/ah 4", true) == 0)
{
if(alevel >= 4)
{
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /duel /getip /setage");
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /setgunskill /givemoney /setmoney /setstat /setfightstyle /setanim /givecookieall /givegoldbarall");
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setplayercolor /setplayerwanted /load /adivorce /makeircadmin /destroycar");
SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /destroycars /eventhelp /setcrime /givecookie /gotobluebus /gotoblackbus /fartbomb");
}
if(strcmp(cmd, "/ah 5", true) == 0)
{
if(alevel >= 5)
{
SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /weather /weatherall /tod /dedit /pointtime /adetain");
SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /gotocar /pban /unban /banaccount /gotocar /wl /setcolor /banip /unbanip /deleteaccount /rangeban");
SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /giftbox /editpoint /setgoldbars /givegoldbar /goincar /fire /re(sources)");
}
}
if(strcmp(cmd, "/ah 6", true) == 0)
{
if(alevel >= 6)
{
SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /hqcreate /hqdelete /ganghqid /createfamgate /deletefamgate /editfamgate /famgateeditor /famegateid /fedit");
SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /createfacgate /deletefacgate /facgateeditor /editfacgate /facgateid /editfaction /editfactionpay /createfcar /deletefcar");
SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /creategate /deletegate /editgate /gateid /acceptrequest");
}
}
if(strcmp(cmd, "/ah 7", true) == 0)
{
if(alevel >= 7)
{
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /bizint /createbiz /deletebiz /bizlevel /bizprice /biztype /bizprods /movebiz /clearbiz /setbizowner /gotobiz /lockbiz");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /houseint /chouseint /createhouse /deletehouse /houselevel /houseprice /movehouse /clearhouse /sethouseowner /gotohouse");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createfamily /deletefamily");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createbuilding /deletebuilding /buildingname /lockbuilding /movebuilding /buildingvw /makebuildingvip /sbm(setbuildingmusic) /gotobuilding");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createentrance /editentrance /entranceid /deleteentrance /gotoentrance ");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategarage /deletegarage /editgarage /gotogarage /garageid /gotogarage");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmotel /deletemotel /movemotel /motelvw /lockmotel /makemotelvip /motelname /gotomotel");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createcar /deletecar /setcarinfo /createpcar /deletepcar /parkpcar");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createdrivethru /deletedrivethru /editdrivethru");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createHSS /deleteHSS /hssignid");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmapicon /editmapicon /nearmapicon");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createMAPB /deleteMAPB");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createinfoboard /deleteinfoboard /setinfoboardstring");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategstation /deletegstation");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createoocshop /deleteoocshop");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /gcam - To Create Speed Camera! [You have to login with rcon]");
SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createpickup");
}
}
if(strcmp(cmd, "/ah 8", true) == 0)
{
if(alevel >= 8)
{
SendClientMessage(playerid, SCOLOR_MARKER,"Executive Administrator: /payday /oprison /lethimtalk");
}
}
if(strcmp(cmd, "/ah 9", true) == 0)
{
if(alevel >= 9)
{
SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /shawntermination /forcerelog /makeleader /savechars /makemoneybag");
SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /deletebag /deletebags /makehelper");
}
if(strcmp(cmd, "/ah 10", true) == 0)
{
if(alevel >= 10)
{
SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /server /makeadmin /deleteaccount /setbankreload /makebanappealer /makegangmod /makespecops");
SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /makemapper /makedev /maketester /makevip");
}
}
if(PlayerInfo[playerid][pBanAppealer])
{
SendClientMessage(playerid, COLOR_WHITE, "Ban Appealer: /unban /unbanip");
}
if(PlayerInfo[playerid][pGangMod])
{
SendClientMessage(playerid, COLOR_WHITE, "Gang Moderator: /fedit /fstrike /fsetstrike");
}
SendClientMessage(playerid,COLOR_GREEN,"_______________________________________");
}
else
{
SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !");
}
}
return 1;
}
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0) { if(IsPlayerConnected(playerid)) { new alevel = PlayerInfo[playerid][pAdmin]; if(alevel > 0) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); if(alevel > 1) { SendClientMessage(playerid, COLOR_GREEN," Use Command /ah 1 for admin commands"); return 1; } if(alevel > 2) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-2 for admin commands"); return 1; } if(alevel >= 3) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-3 for admin commands"); return 1; } if(alevel >= 4) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-4 for admin commands"); return 1; } if(alevel >= 5) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-5 for admin commands"); return 1; } if(alevel >= 6) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-6 for admin commands"); return 1; } if(alevel >= 7) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-7 for admin commands"); return 1; } if(alevel >= 8) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-8 for admin commands"); return 1; } if(alevel >= 9) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-9 for admin commands"); return 1; } if(alevel >= 10) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 1-10 for admin commands"); return 1; } if(strcmp(cmd, "/ah 1", true) == 0) { if(alevel >= 1) return SendClientMessage(playerid, "You are not admin"); { SendClientMessage(playerid, SCOLOR_CYAN, "Server Moderator : /listguns /check /spec /setint /setvw /mute /nmute (/a)dmin /warnings /ch /kcc /senddmv"); } } if(strcmp(cmd, "/ah 2", true) == 0) { if(alevel >= 2) { SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /skydive /bigears /freeze /unfreeze /slap /warn /cnn /rmute /goto /sendtols"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /refund /tuteject /hoseject /fuelcars /setjob /forcetut"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /admute"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /listmuted /listmasked /kick /ban /aduty /adutyoff /checkprison /afgate /agate"); } } if(strcmp(cmd, "/ah 3", true) == 0) { if(alevel >= 3) { SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /noooc /fourdive /jail /prison /fine /startlotto /ramps /setcarhp /sorry /rhv"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /getcar /rav /mark /goto /gethere /oldcar /pann /mole /had /ipcheck /countdown /disarm /nohospital /setaccent"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /rhw /cp /mole /had /ipcheck /countdown /disarm /nohospital /setaccent /acolorcar /setgas /setcarint /setcarvw"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /fws /atazer /amask"); } } if(strcmp(cmd, "/ah 4", true) == 0) { if(alevel >= 4) { SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /duel /getip /setage"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /setgunskill /givemoney /setmoney /setstat /setfightstyle /setanim /givecookieall /givegoldbarall"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setplayercolor /setplayerwanted /load /adivorce /makeircadmin /destroycar"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /destroycars /eventhelp /setcrime /givecookie /gotobluebus /gotoblackbus /fartbomb"); } } if(strcmp(cmd, "/ah 5", true) == 0) { if(alevel >= 5) { SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /weather /weatherall /tod /dedit /pointtime /adetain"); SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /gotocar /pban /unban /banaccount /gotocar /wl /setcolor /banip /unbanip /deleteaccount /rangeban"); SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /giftbox /editpoint /setgoldbars /givegoldbar /goincar /fire /re(sources)"); } } if(strcmp(cmd, "/ah 6", true) == 0) { if(alevel >= 6) { SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /hqcreate /hqdelete /ganghqid /createfamgate /deletefamgate /editfamgate /famgateeditor /famegateid /fedit"); SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /createfacgate /deletefacgate /facgateeditor /editfacgate /facgateid /editfaction /editfactionpay /createfcar /deletefcar"); SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /creategate /deletegate /editgate /gateid /acceptrequest"); } } if(strcmp(cmd, "/ah 7", true) == 0) { if(alevel >= 7) { SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /bizint /createbiz /deletebiz /bizlevel /bizprice /biztype /bizprods /movebiz /clearbiz /setbizowner /gotobiz /lockbiz"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /houseint /chouseint /createhouse /deletehouse /houselevel /houseprice /movehouse /clearhouse /sethouseowner /gotohouse"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createfamily /deletefamily"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createbuilding /deletebuilding /buildingname /lockbuilding /movebuilding /buildingvw /makebuildingvip /sbm(setbuildingmusic) /gotobuilding"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createentrance /editentrance /entranceid /deleteentrance /gotoentrance "); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategarage /deletegarage /editgarage /gotogarage /garageid /gotogarage"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmotel /deletemotel /movemotel /motelvw /lockmotel /makemotelvip /motelname /gotomotel"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createcar /deletecar /setcarinfo /createpcar /deletepcar /parkpcar"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createdrivethru /deletedrivethru /editdrivethru"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createHSS /deleteHSS /hssignid"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmapicon /editmapicon /nearmapicon"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createMAPB /deleteMAPB"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createinfoboard /deleteinfoboard /setinfoboardstring"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategstation /deletegstation"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createoocshop /deleteoocshop"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /gcam - To Create Speed Camera! [You have to login with rcon]"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createpickup"); } } if(strcmp(cmd, "/ah 8", true) == 0) { if(alevel >= 8) { SendClientMessage(playerid, SCOLOR_MARKER,"Executive Administrator: /payday /oprison /lethimtalk"); } } if(strcmp(cmd, "/ah 9", true) == 0) { if(alevel >= 9) { SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /shawntermination /forcerelog /makeleader /savechars /makemoneybag"); SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /deletebag /deletebags /makehelper"); } } if(strcmp(cmd, "/ah 10", true) == 0) { if(alevel >= 10) { SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /server /makeadmin /deleteaccount /setbankreload /makebanappealer /makegangmod /makespecops"); SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /makemapper /makedev /maketester /makevip"); } } if(PlayerInfo[playerid][pBanAppealer]) { SendClientMessage(playerid, COLOR_WHITE, "Ban Appealer: /unban /unbanip"); } if(PlayerInfo[playerid][pGangMod]) { SendClientMessage(playerid, COLOR_WHITE, "Gang Moderator: /fedit /fstrike /fsetstrike"); } SendClientMessage(playerid,COLOR_GREEN,"_______________________________________"); } else { SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !"); } } return 1; }
Just follow my steps like i did
And do them by yourself its pretty simple Код:
if(strcmp(cmd, "/ah 1", true) == 0) { if(alevel >= 1) return SendClientMessage(playerid, "You are not admin level 1"); { SendClientMessage(playerid, SCOLOR_CYAN, "Server Moderator : /listguns /check /spec /setint /setvw /mute /nmute (/a)dmin /warnings /ch /kcc /senddmv"); } } if(strcmp(cmd,"/ah 2",true ) == 0) { if(alevel >= 2) { SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /skydive /bigears /freeze /unfreeze /slap /warn /cnn /rmute /goto /sendtols"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /refund /tuteject /hoseject /fuelcars /setjob /forcetut"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /freezeplayers /unfreezeplayers /setskin /muteplayers /unmuteplayers /admute"); SendClientMessage(playerid, COLOR_YELLOW,"Junior Administrator: /listmuted /listmasked /kick /ban /aduty /adutyoff /checkprison /afgate /agate"); } } // if player is level 3 // do same as i did on up cmds // after do lvl 3-4-5 etc // at /ahelp just send client message that they have to write /ah [1-[lastadmin lvl] for their cmds if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0) { if(IsPlayerConnected(playerid)) { new alevel = PlayerInfo[playerid][pAdmin]; if(alevel > 0) { SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); if(alevel >= 1) { SendClientMessage(playerid, COLOR_GREEN," Use Command /ah 1 for admin lvl commands"); return 1; } if(alevel >= 2) { SendClientMessage(playerid, COLOR_GREEN,"Use Command /ah 2 for admin lvl 2 commands"); } if(alevel >= 3) { SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /noooc /fourdive /jail /prison /fine /startlotto /ramps /setcarhp /sorry /rhv"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /getcar /rav /mark /goto /gethere /oldcar /pann /mole /had /ipcheck /countdown /disarm /nohospital /setaccent"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /rhw /cp /mole /had /ipcheck /countdown /disarm /nohospital /setaccent /acolorcar /setgas /setcarint /setcarvw"); SendClientMessage(playerid, COLOR_ORANGE,"General Administrator: /fws /atazer /amask"); } if(alevel >= 4) { SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setchamp /sethpall /setarmorall /fixvehall /givenos /blowup /setname /listcars /duel /getip /setage"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /veh /vehmenu /fixveh /sethp /setarmor /givegun /givegunall /setgunskill /givemoney /setmoney /setstat /setfightstyle /setanim /givecookieall /givegoldbarall"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /setplayercolor /setplayerwanted /load /adivorce /makeircadmin /destroycar"); SendClientMessage(playerid, COLOR_DOC,"Senior Administrator: /destroycars /eventhelp /setcrime /givecookie /gotobluebus /gotoblackbus /fartbomb"); } if(alevel >= 1337) { SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /weather /weatherall /tod /dedit /pointtime /adetain"); SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /gotocar /pban /unban /banaccount /gotocar /wl /setcolor /banip /unbanip /deleteaccount /rangeban"); SendClientMessage(playerid, COLOR_GREEN,"Head Administrator: /giftbox /editpoint /setgoldbars /givegoldbar /goincar /fire /re(sources)"); } if(alevel >= 1338) { SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /hqcreate /hqdelete /ganghqid /createfamgate /deletefamgate /editfamgate /famgateeditor /famegateid /fedit"); SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /createfacgate /deletefacgate /facgateeditor /editfacgate /facgateid /editfaction /editfactionpay /createfcar /deletefcar"); SendClientMessage(playerid, COLOR_BLUE,"Community Manager: /creategate /deletegate /editgate /gateid /acceptrequest"); } if(alevel >= 1339) { SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /bizint /createbiz /deletebiz /bizlevel /bizprice /biztype /bizprods /movebiz /clearbiz /setbizowner /gotobiz /lockbiz"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /houseint /chouseint /createhouse /deletehouse /houselevel /houseprice /movehouse /clearhouse /sethouseowner /gotohouse"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createfamily /deletefamily"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createbuilding /deletebuilding /buildingname /lockbuilding /movebuilding /buildingvw /makebuildingvip /sbm(setbuildingmusic) /gotobuilding"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createentrance /editentrance /entranceid /deleteentrance /gotoentrance "); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategarage /deletegarage /editgarage /gotogarage /garageid /gotogarage"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmotel /deletemotel /movemotel /motelvw /lockmotel /makemotelvip /motelname /gotomotel"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createcar /deletecar /setcarinfo /createpcar /deletepcar /parkpcar"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createdrivethru /deletedrivethru /editdrivethru"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createHSS /deleteHSS /hssignid"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createmapicon /editmapicon /nearmapicon"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createMAPB /deleteMAPB"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createinfoboard /deleteinfoboard /setinfoboardstring"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /creategstation /deletegstation"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createoocshop /deleteoocshop"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /gcam - To Create Speed Camera! [You have to login with rcon]"); SendClientMessage(playerid, COLOR_RED,"Co-Executive Admin: /createpickup"); } if(alevel >= 99998) { SendClientMessage(playerid, SCOLOR_MARKER,"Executive Administrator: /payday /oprison /lethimtalk"); } if(alevel >= 99999) { SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /shawntermination /forcerelog /makeleader /savechars /makemoneybag"); SendClientMessage(playerid, COLOR_DARKAQUA,"Community Scripter : /deletebag /deletebags /makehelper"); } if(alevel >= 100000) { SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /server /makeadmin /deleteaccount /setbankreload /makebanappealer /makegangmod /makespecops"); SendClientMessage(playerid, TCOLOR_DARKGREY,"Community Owner : /makemapper /makedev /maketester /makevip"); } if(PlayerInfo[playerid][pBanAppealer]) { SendClientMessage(playerid, COLOR_WHITE, "Ban Appealer: /unban /unbanip"); } if(PlayerInfo[playerid][pGangMod]) { SendClientMessage(playerid, COLOR_WHITE, "Gang Moderator: /fedit /fstrike /fsetstrike"); } SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); } else { SendClientMessage(playerid, COLOR_GREY," You are not authorized to use that command !"); } |