11.08.2016, 18:15
I am trying to script if you right "/ahelp 1" admin lvl 1 commands must pop up and when i right /ahelp it should show me a message "Type /ah 1 if you admin lvl 1 etc.
My Code:
Help Me ill give you + rep
My Code:
PHP код:
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;
}