hello,i am trying to do a flag validation currently, the client executing the !test command has the "b" flag assigned but it prints as if the client has the "a" flag what could be the problem.
Code:
RegConsoleCmd("sm_test", cmdTest);
public Action cmdTest(int client, int args) {
if(CheckCommandAccess(client, "", ADMFLAG_GENERIC) ||
CheckCommandAccess(client, "", ADMFLAG_RESERVATION))
{
if(CheckCommandAccess(client, "", ADMFLAG_RESERVATION)) {
CPrintToChatAll("flag a");
} else if(CheckCommandAccess(client, "", ADMFLAG_GENERIC)) {
CPrintToChatAll("flag b");
}
}
}