Admin Commands [Adminlevel]
#5

pawn Код:
CMD:ahelp(playerid, params[])
{
    new var = pInfo[playerid][Adminlevel]; // I just don't wanna keep typing this out :P
    if(!var) 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");
    if(var >= 1) SendClientMessage(playerid, COLOR_SERVER, "Trial Admin: {EAEAEA}/sp(ecoff), /cp, /(un)freeze, /slap, /warn, /kick, /tpto, /tptome, /(un)mute");
    if(var >= 2) SendClientMessage(playerid, COLOR_SERVER, "Basic Admin: {EAEAEA}/cchat, /burn, /mute, /ban, /ann, /setskin");
    if(var >= 3) SendClientMessage(playerid, COLOR_SERVER, "Senior Admin: {EAEAEA}/bomb, /hna, /settime, /givewep, /setweather, /sethealth, /disarm, /heal, /armour");
    if(var >= 4) SendClientMessage(playerid, COLOR_SERVER, "Head Admin: {EAEAEA}/akill, /resetscore, /resetmoney, /givemoney, /setscore, /makecmd");
    if(var >= 5) SendClientMessage(playerid, COLOR_SERVER, "Owner: {EAEAEA}/setadmin, /plantbomb");
    SendClientMessage(playerid, COLOR_RED, "Warning: {E5E5E5}If you abuse these commands for unfair advantage, you will be removed without question!");
    return 1;
}

CMD:acommands(playerid, params[]) return cmd_ahelp(playerid, params);
You should not be using two different methods to process commands.
Reply


Messages In This Thread
Admin Commands [Adminlevel] - by Zmith - 18.05.2015, 04:32
Re: Admin Commands [Adminlevel] - by ranme15 - 18.05.2015, 04:39
Re: Admin Commands [Adminlevel] - by Zmith - 18.05.2015, 04:53
Re: Admin Commands [Adminlevel] - by EBook - 18.05.2015, 05:01
Re: Admin Commands [Adminlevel] - by Threshold - 18.05.2015, 05:18
Re: Admin Commands [Adminlevel] - by Zmith - 18.05.2015, 05:30
Re: Admin Commands [Adminlevel] - by Threshold - 18.05.2015, 05:31
Re: Admin Commands [Adminlevel] - by Zmith - 18.05.2015, 06:21
Re: Admin Commands [Adminlevel] - by Threshold - 18.05.2015, 08:31
Re: Admin Commands [Adminlevel] - by Zmith - 18.05.2015, 12:28

Forum Jump:


Users browsing this thread: 1 Guest(s)