View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-28-2019 , 14:55   Re: [REQ] Ban on disconnect and works with SourceBans ($$)
Reply With Quote #7

Quote:
Originally Posted by gildevanaraujo View Post
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.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline