AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Access (https://forums.alliedmods.net/showthread.php?t=154929)

KviZ 04-15-2011 12:02

Access
 
How can I check for player's flag? access(id, flag) ?

ConnorMcLeod 04-15-2011 12:09

Re: Access
 
Yes.
And change that avatar.

bibu 04-15-2011 13:21

Re: Access
 
Quote:

Originally Posted by ConnorMcLeod (Post 1450449)
And change that avatar.

Says exactly the right person which had a fucking ugly woman in winter. :mrgreen:

KviZ 04-15-2011 13:30

Re: Access
 
@ConnorMcLeod do I need to type something (define blabla, new blabla) before I ask for access?
P.S. My avatar is funny so I leave it how it is :D

bibu 04-15-2011 13:39

Re: Access
 
PHP Code:

#define MY_FLAG ADMIN_BAN

get_user_flags(id) & MY_FLAG 


KviZ 04-15-2011 13:47

Re: Access
 
why did you put & get_user_flags(id) (&) MY_FLAG?

Exolent[jNr] 04-15-2011 16:26

Re: Access
 
That is how you check if the player's flags bitsum contains the MY_FLAG bit.
https://forums.alliedmods.net/showthread.php?t=139916

fysiks 04-15-2011 18:10

Re: Access
 
Quote:

Originally Posted by KviZ (Post 1450563)
@ConnorMcLeod do I need to type something (define blabla, new blabla) before I ask for access?

If you want to use access() or cmd_access():

PHP Code:

#include <amxmisc> 

Quote:

Originally Posted by KviZ (Post 1450563)
P.S. My avatar is funny

No, not really.


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

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