flag validations
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); |
Re: flag validations
#include <multicolors>
public void OnPluginStart() { RegConsoleCmd("sm_test", cmdTest); } public Action cmdTest(int client, int args) { if(CheckCommandAccess(client, "", ADMFLAG_GENERIC) || CheckCommandAccess(client, "", ADMFLAG_RESERVATION)) { if(CheckCommandAccess(client, "a", ADMFLAG_RESERVATION)) { CPrintToChatAll("flag a"); } else if(CheckCommandAccess(client, "b", ADMFLAG_GENERIC)) { CPrintToChatAll("flag b"); } } } // Here :> |
Re: flag validations
PHP Code:
|
All times are GMT -4. The time now is 08:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.