Raised This Month: $ Target: $400
 0% 

Access


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KviZ
Senior Member
Join Date: Feb 2011
Location: Lithuania
Old 04-15-2011 , 12:02   Access
Reply With Quote #1

How can I check for player's flag? access(id, flag) ?
__________________
[LT] Basebuilder server - 62.80.238.25:27015
KviZ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-15-2011 , 12:09   Re: Access
Reply With Quote #2

Yes.
And change that avatar.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 04-15-2011 , 13:21   Re: Access
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
And change that avatar.
Says exactly the right person which had a fucking ugly woman in winter.
bibu is offline
KviZ
Senior Member
Join Date: Feb 2011
Location: Lithuania
Old 04-15-2011 , 13:30   Re: Access
Reply With Quote #4

@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
__________________
[LT] Basebuilder server - 62.80.238.25:27015
KviZ is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 04-15-2011 , 13:39   Re: Access
Reply With Quote #5

PHP Code:
#define MY_FLAG ADMIN_BAN

get_user_flags(id) & MY_FLAG 
bibu is offline
KviZ
Senior Member
Join Date: Feb 2011
Location: Lithuania
Old 04-15-2011 , 13:47   Re: Access
Reply With Quote #6

why did you put & get_user_flags(id) (&) MY_FLAG?
__________________
[LT] Basebuilder server - 62.80.238.25:27015
KviZ is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-15-2011 , 16:26   Re: Access
Reply With Quote #7

That is how you check if the player's flags bitsum contains the MY_FLAG bit.
https://forums.alliedmods.net/showthread.php?t=139916
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-15-2011 , 18:10   Re: Access
Reply With Quote #8

Quote:
Originally Posted by KviZ View Post
@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 View Post
P.S. My avatar is funny
No, not really.
__________________
fysiks is offline
Reply



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:59.


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