Check if client has at least one of multiple flags
Hey, I want to check if client has at least one of the required flags set by cvar. Below is an example code which apparently only works with the first flag in the cvar string because if I give myself only 'o' flag then I don't have access.
Code:
#include <sourcemod> |
Re: Check if client has at least one of multiple flags
Try checking for the flags like this:
PHP Code:
|
Re: Check if client has at least one of multiple flags
Quote:
With a small modification it can get you what you want. PHP Code:
|
Re: Check if client has at least one of multiple flags
Both of these do the job. Thanks a lot! :)
|
All times are GMT -4. The time now is 11:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.