Quote:
Originally Posted by Agent Wesker
@Mitchell
I check the code and see CheckCommandAccess(client, "sm_smartlinkremover", ADMFLAG_ROOT, false)
but there is no such command, is this broken or I just don't understand how it works?
(I'm coding another plugin and need to check for VIPs)
|
https://sm.alliedmods.net/new-api/co...kCommandAccess
bool CheckCommandAccess(int client, const char[] command, int flags, bool override_only)
bool override_only
PHP Code:
If true, SourceMod will not attempt to find a matching command, and it will only use the default flags specified. Otherwise, SourceMod will ignore the default flags if there is a matching admin command.
that basically means that it doesn't matter what command in there it will just check the flag that is written there regardless of the command
__________________