Page 1 of 1

Commands.ini accesslevels

PostPosted: Sat Sep 15, 2007 2:51 pm
by Rifke
Parhaps no one ever wonderd why you have to enter the accesslevels in de commands.ini file as 1 lower than the current accesslevel.

It's quite simple
in your gmcmds.cpp you have under every if the following code
  1.  
  2.  if(Config.Command_<name> > thisclient->Session->accesslevel) {
  3.  // the code of the command <name> ...
  4. }
  5.  


If you change > to >=. The commands can be written as the exact accesslevel as they should.
  1.  
  2.  if(Config.Command_<name> >= thisclient->Session->accesslevel) {
  3.  // the code of the command <name> ...
  4. }
  5.  

Re: Commands.ini accesslevels

PostPosted: Tue Jan 19, 2016 2:44 pm
by Vetyst
Thanks for the TIP!