Admin restrict a command
#4

It would've been nice if you provided the admin system you're using, but still, the logic works this way:
  • Player issues a command
  • You check his level
  • If it's 4 or bigger than 4, success
  • If his level is less than 4 you display your error message
Код:
  
if(playerinfo[playerid][alevel] >= 4)  
{
    // Success.... 
}  
else if(playerinfo[playerid][alevel] < 4)
{
    // Something like "You can't use the command specified."
}
Reply


Messages In This Thread
Admin restrict a command - by Fadel - 27.05.2013, 10:48
Re: Admin restrict a command - by mahdi499 - 27.05.2013, 10:53
Re: Admin restrict a command - by Fadel - 27.05.2013, 11:38
Re: Admin restrict a command - by Kurzalewski - 27.05.2013, 12:01
Re: Admin restrict a command - by Fadel - 27.05.2013, 12:37
Re: Admin restrict a command - by Smokkr - 27.05.2013, 12:40
Re: Admin restrict a command - by Fadel - 27.05.2013, 13:39
Re: Admin restrict a command - by Smokkr - 27.05.2013, 13:43
Re: Admin restrict a command - by Fadel - 27.05.2013, 13:57
Re: Admin restrict a command - by Smokkr - 27.05.2013, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)