CheckCommandAccess fails check access
PHP Code:
PHP Code:
|
Re: CheckCommandAccess fails check access
Quote:
PHP Code:
|
Re: CheckCommandAccess fails check access
What is your Sourcemod version?
|
Re: CheckCommandAccess fails check access
You maybe want start use admin groups, not need hassle with flags.
Example: Code:
enum admin_groups.cfg Code:
Groups Code:
/** And my tip is: - If you want avoid admin problems in future, do not give ROOT flag "z" to anyone. Not even yourself. ROOT flag have access to all, bypass admin immunity, everything. You not actually want that. https://sm.alliedmods.net/new-api/admin/AdminFlag What useful you can do with ROOT flag is, restrict some admin commands or admin check from different admin groups. Use admin_overrides.cfg |
Re: CheckCommandAccess fails check access
Each of your CheckCommandAccess calls needs a unique “command” string. They should also be passing true for “override_only”.
Requiring multiple flags (as with your RegAdminCmd) requires the client to have all those flags, not any of them. |
Re: CheckCommandAccess fails check access
Quote:
|
Re: CheckCommandAccess fails check access
Quote:
|
Re: CheckCommandAccess fails check access
Quote:
Code:
if(CheckCommandAccess(i, "access_ADMIN", ADMFLAG_ROOT, true)) |
Re: CheckCommandAccess fails check access
Quote:
- 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" |
Re: CheckCommandAccess fails check access
Quote:
Code:
"Admin" |
All times are GMT -4. The time now is 02:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.