Jump to content

Security Levels: 0 - 4


Recommended Posts

Posted

Hey

I'd like to implement more security levels

Rather than just 0-4

id like to learn how to make "custom" security levels

could someone point me to where in the source the code is, as im struggling to find it

and has anyone else tried doing this?

and managed to do it?

Posted

Its not that easy you need to change a lot internal and also define the new ranks (Search a bit in the source code) and you need to change the checks to log commands and stuff else your GMLogs are full of spam.

Posted
woulden't it be possible to set a level higher than 4 also?

It will same as 4, and 4 level meaning: allowed only from mangosd console.

For adding new levels you need modify

1)

enum AccountTypes
{
   SEC_PLAYER         = 0,
   SEC_MODERATOR      = 1,
   SEC_GAMEMASTER     = 2,
   SEC_ADMINISTRATOR  = 3,
   SEC_CONSOLE        = 4                                  // must be always last in list, accounts must have less security level always also
};

2) update `command` table and some options setting to new values for std. case (for example if admin now 5 then need update from 3 -> 5, etc

3) carefully check code where SEC_* constants used in checks to add support and update checks for new levels.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use