18.05.2015, 12:28
Quote:
Код:
CMD:ahelp(playerid, params[]) { if(pInfo[playerid][Adminlevel] < 1)return SendClientMessage(playerid, COLOR_RED, "{ff6347}Error: You are not allowed to use this command!"); SendClientMessage(playerid, COLOR_SERVER, "Age of Revolution {EAEAEA}- Admin Commands"); SendClientMessage(playerid, COLOR_SERVER, "Trial Admin: {EAEAEA}/sp(off), /cp, /(un)freeze, /slap, /warn, /kick, /tpto, /tptome, /(un)mute"); if(pInfo[playerid][Adminlevel] == 2) SendClientMessage(playerid, COLOR_SERVER, "Basic Admin: {EAEAEA}/cchat, /burn, /mute, /ban, /ann, /setskin"); if(pInfo[playerid][Adminlevel] == 3) SendClientMessage(playerid, COLOR_SERVER, "Senior Admin: {EAEAEA}/bomb, /hna, /settime, /givewep, /setweather, /sethealth, /disarm, /heal, /armour"); if(pInfo[playerid][Adminlevel] == 4) SendClientMessage(playerid, COLOR_SERVER, "Head Admin: {EAEAEA}/akill, /resetscore, /resetmoney, /givemoney, /setscore, /makecmd"); if(pInfo[playerid][Adminlevel] == 5) SendClientMessage(playerid, COLOR_SERVER, "Owner: {EAEAEA}/setadmin, /plantbomb"); if(pInfo[playerid][Adminlevel] == 1) SendClientMessage(playerid, COLOR_RED,"Warning: {E5E5E5}Abuse these commands for unfair advantage you will be removed without question!"); return 1; } I want it to be such as; - Adminlevel 1 (can see) = Adminlevel 1 commands - Adminlevel 2 (can see) = Adminlevel 1&2 commands - Adminlevel 3 (can see) = Adminlevel 1&2&3 commands - Adminlevel 4 (can see) = Adminlevel 1&2&3&4 commands - Adminlevel 5 (can see) = Adminlevel 1&2&3&4&5 commands Currently: - Adminlevel 1 (can see) = Adminlevel 1 commands - Adminlevel 2 (can see) = Adminlevel 2 commands - Adminlevel 3 (can see) = Adminlevel 3 commands - Adminlevel 4 (can see) = Adminlevel 4 commands - Adminlevel 5 (can see) = Adminlevel 5 commands Previously: - Adminlevel 1 (can see) = Adminlevel 1&2&3&4&5 commands - Adminlevel 2 (can see) = Adminlevel 1&2&3&4&5 commands - Adminlevel 3 (can see) = Adminlevel 1&2&3&4&5 commands - Adminlevel 4 (can see) = Adminlevel 1&2&3&4&5 commands - Adminlevel 5 (can see) = Adminlevel 1&2&3&4&5 commands |