Quote:
Originally Posted by gildevanaraujo
This is correct?
PHP Code:
if(!CheckCommandAccess(Client, "sm_disconnectban_immune", ADMFLAG_ROOT | ADMFLAG_BAN) && PugSetup_IsMatchLive() && PugSetup_PlayerAtStart(Client))
I want the admin flag and flag ban to have immunity, right?
|
I don't believe I haven't ever seen | used with CheckCommandAccess, but you can do mutltiple CheckCommandAccess, e.g.:
PHP Code:
if(!CheckCommandAccess(Client, "sm_disconnectban_immune", ADMFLAG_ROOT) && !CheckCommandAccess(Client, "sm_disconnectban_immune", ADMFLAG_BAN) && PugSetup_IsMatchLive() && PugSetup_PlayerAtStart(Client))
Although I strongly suggest you to work on overrides if you are not already doing that.
They don't only give you access to those ~21'ish flags that SourceMod comes with, but is literally a way you can create "custom flags" with.
As overrides can be any alphanumeric value, you have like millions of options with them rather than just 21 different options with the flags.
__________________