Raised This Month: $ Target: $400
 0% 

cmdaccess.ini & get_user_flags()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hypheni
Senior Member
Join Date: Jul 2011
Location: India
Old 01-15-2013 , 02:15   Re: cmdaccess.ini & get_user_flags()
Reply With Quote #4

I have found these defines:

PHP Code:
Admin Level Constants
#define ADMIN_ALL        0    //Everyone
#define ADMIN_IMMUNITY        1    //Flag "a", immunity
#define ADMIN_RESERVATION    2    //Flag "b", reservation
#define ADMIN_KICK        4    //Flag "c", kick
#define ADMIN_BAN        8    //Flag "d", ban
#define ADMIN_SLAY        16    //Flag "e", slay
#define ADMIN_MAP        32    //Flag "f", map change
#define ADMIN_CVAR        64    //Flag "g", cvar change
#define ADMIN_CFG        128    //Flag "h", config execution
#define ADMIN_CHAT        256    //Flag "i", chat
#define ADMIN_VOTE        512    //Flag "j", vote
#define ADMIN_PASSWORD        1024    //Flag "k", sv_password
#define ADMIN_RCON        2048    //Flag "l", rcon access
#define ADMIN_LEVEL_A        4096    //Flag "m", custom
#define ADMIN_LEVEL_B        8192    //Flag "n", custom
#define ADMIN_LEVEL_C        16384    //Flag "o", custom
#define ADMIN_LEVEL_D        32768    //Flag "p", custom
#define ADMIN_LEVEL_E        65536    //Flag "q", custom
#define ADMIN_LEVEL_F        131072    //Flag "r", custom
#define ADMIN_LEVEL_G        262144    //Flag "s", custom
#define ADMIN_LEVEL_H        524288    //Flag "t", custom
#define ADMIN_MENU        1048576    //Flag "u", menus
#define ADMIN_ADMIN        16777216    //Flag "y", default admin
#define ADMIN_USER        33554432    //Flag "z", default user 
So normal non-admin users falls under ADMIN_ALL and according to my cmdaccess.ini I should check ADMIN_IMMUNITY (flag "a") or ADMIN_CVAR (flag "g").

Am I correct ?
hypheni is offline
Send a message via Skype™ to hypheni
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode