View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-08-2020 , 07:06   Re: CheckCommandAccess fails check access
Reply With Quote #9

Quote:
Originally Posted by ZASTRELIS View Post
Was tried, and it works. Thanks..

Code:
if(CheckCommandAccess(i, "access_ADMIN", ADMFLAG_ROOT, true))
I'm not fully understood why ADMFLAG_ROOT everytime for different access level
Like I said in previous post:
- Don't give to person admin flag "z", or otherwise he get all admin flags (abcdefghijklmnopqrst)
- Use "z" flag as restrict commands and access, example from admin_overrides.cfg, "sm_ban" "z"
- Use admin group, to override specific command or access to group users. "sm_ban" "allow"
Bacardi is offline