Commands.ini accesslevels
Posted: Sat Sep 15, 2007 2:51 pm
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
If you change > to >=. The commands can be written as the exact accesslevel as they should.
It's quite simple
in your gmcmds.cpp you have under every if the following code
- if(Config.Command_<name> > thisclient->Session->accesslevel) {
- // the code of the command <name> ...
- }
If you change > to >=. The commands can be written as the exact accesslevel as they should.
- if(Config.Command_<name> >= thisclient->Session->accesslevel) {
- // the code of the command <name> ...
- }