View Single Post
headline
SourceMod Moderator
Join Date: Mar 2015
Old 03-26-2020 , 21:24   Re: [CSGO] Admin privileges for VIP-plugin
Reply With Quote #2

Using bit-wise OR only strengthens the requirement.

The root flag will always have access to everything so just set it to ADMFLAG_GENERIC

For example the following snippet will require both generic and slay privileges, not either or.
PHP Code:
RegAdminCmd("sm_test"SomeCallbackADMFLAG_GENERIC|ADMFLAG_SLAY); 

Last edited by headline; 03-26-2020 at 21:26.
headline is offline