Raised This Month: $32 Target: $400
 8% 

Solved flag validations


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
weffer
Member
Join Date: Oct 2020
Old 08-12-2022 , 14:11   flag validations
Reply With Quote #1

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");
      }
    }
}

Last edited by weffer; 08-12-2022 at 16:48.
weffer is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode