Admin Commands [Adminlevel]
#10

Quote:
Originally Posted by Zmith
Посмотреть сообщение
Код:
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've just tried this and now it's showing them individually by their admin lvl. (see "Currently:" below for example)
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
....
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)