admin level problem
#10

Quote:
Originally Posted by oMa37
Посмотреть сообщение
PHP код:
if(level || level 1336) return SCM(pid, -1"You cannot do this!"); 
that does not work. for me, the correct way I figured out would be:
Код:
if(level >= 6 && level <= 1336) return SCM(pid, -1, "You cannot do this!");
you wouldn't be able to set admins between 6-1336 with this line.

here is what I meant about the operators:
Album
this statement says that if you are not an admin level 4 OR not a RCON admins to return an admin_message, meaning that a player with RCON acces should be able to use this command, while he isn't. strangely, the operator || works the opposite as the &&
Reply


Messages In This Thread
admin level problem - by JXF - 02.06.2016, 13:08
Re: admin level problem - by F1N4L - 02.06.2016, 13:10
Re: admin level problem - by oMa37 - 02.06.2016, 13:11
Re: admin level problem - by Deroxi - 02.06.2016, 13:14
Re: admin level problem - by F1N4L - 02.06.2016, 13:15
Re: admin level problem - by JXF - 02.06.2016, 14:24
Re: admin level problem - by Sjn - 02.06.2016, 15:05
Re: admin level problem - by Dayrion - 02.06.2016, 15:46
Re: admin level problem - by PrO.GameR - 02.06.2016, 16:01
Re: admin level problem - by JXF - 02.06.2016, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)