01.05.2010, 00:23
Okay so I have:
Now, I am a level 5 admin, and when I go into the server and do /ahelp, it will only show the Level 1 commands, and not the level 5 commands.
How can I make it so that if you are level 5, you can see all the level 5 commands and lower, and if your level 2, you can see all the level 2 commands and lower, etc
pawn Код:
CMD:ahelp(playerid, params[]) {
if(PlayerInfo[playerid][Admin] >= 1)
{
SendClientMessage(playerid,COLOR_WHITE,"Level 1: /kick /freeze /unfreeze");
return 1;
}
if(PlayerInfo[playerid][Admin] >= 5)
{
SendClientMessage(playerid,COLOR_WHITE,"Level 5: /setadmin /gmx");
return 1;
}
else return SendClientMessage(playerid,COLOR_RED,"You aren't an admin.");
}
How can I make it so that if you are level 5, you can see all the level 5 commands and lower, and if your level 2, you can see all the level 2 commands and lower, etc