Setlevel Command Help
#7

You just need to add a condition "if" to see if the level exceeds 4, if it does, you simply return an error message.
Or you can also use a "While":

While (level < 0 || level > 4)
{
return SendClientMessage(playerid,0x3740B3,"Admin level must be between 0 and 4");
}
Reply


Messages In This Thread
Setlevel Command Help - by Vasu99 - 27.02.2014, 16:47
Re: Setlevel Command Help - by Konstantinos - 27.02.2014, 16:54
Re: Setlevel Command Help - by Vasu99 - 27.02.2014, 17:19
Re: Setlevel Command Help - by Konstantinos - 27.02.2014, 17:42
Re: Setlevel Command Help - by Vasu99 - 27.02.2014, 17:53
Re: Setlevel Command Help - by Konstantinos - 27.02.2014, 17:56
Re: Setlevel Command Help - by Miado_Hulk - 27.02.2014, 18:08
Re: Setlevel Command Help - by Konstantinos - 27.02.2014, 18:12
Re: Setlevel Command Help - by Miado_Hulk - 27.02.2014, 18:16

Forum Jump:


Users browsing this thread: 3 Guest(s)