Can admin access flags be stored as cvars by their defined identifier names from amxconst ?
e.g. I am wondering if the following would work?
Code:
register_cvar( "access_level", "ADMIN_LEVEL_A")
...
if ( !(get_user_flags(id) & get_cvar_num("access_level") ) {
// No access
return PLUGIN_HANDLED
}
If not, how would this need to be handled?
Thanks!
-Mug