View Single Post
Author Message
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 12-11-2017 , 17:38   Does CheckCommandAccess detect flags higher than the specified flag?
Reply With Quote #1

Hey guys, I have a question about this:

PHP Code:
bool IsAdminAllowed(int client)
{
     if(
CheckCommandAccess(client"sm_kick"ADMFLAG_KICKfalse))
           return 
true;
     return 
false;

When using this code, will it allow any flags higher than the kick flag to have the same access?

Let's say player A has the kick flag and player B has the slay flag. Will player B also need to specifically have the kick flag to have the same access as player A?
__________________

Last edited by Psyk0tik; 12-11-2017 at 20:54. Reason: Marked as "[Solved]"
Psyk0tik is offline