If statements help
#1

Okay so I have:

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.");
}
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
Reply


Messages In This Thread
If statements help - by Memoryz - 01.05.2010, 00:23
Re: If statements help - by Nero_3D - 01.05.2010, 00:28
Re: If statements help - by Memoryz - 01.05.2010, 00:47

Forum Jump:


Users browsing this thread: 2 Guest(s)