Raised This Month: $ Target: $400
 0% 

Quite a strange problem :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
m0v3
Member
Join Date: May 2009
Old 08-17-2009 , 10:40   Quite a strange problem :)
Reply With Quote #1

Hi As I have the constants
Code:
ADMIN_ALL		0	//Everyone
ADMIN_IMMUNITY		1	//Flag "a", immunity
ADMIN_RESERVATION	2	//Flag "b", reservation
ADMIN_KICK		4	//Flag "c", kick
ADMIN_BAN		8	//Flag "d", ban
ADMIN_SLAY		16	//Flag "e", slay
ADMIN_MAP		32	//Flag "f", map change
ADMIN_CVAR		64	//Flag "g", cvar change
ADMIN_CFG		128	//Flag "h", config execution
ADMIN_CHAT		256	//Flag "i", chat
ADMIN_VOTE		512	//Flag "j", vote
ADMIN_PASSWORD		1024	//Flag "k", sv_password
ADMIN_RCON		2048	//Flag "l", rcon access
ADMIN_LEVEL_A		4096	//Flag "m", custom
ADMIN_LEVEL_B		8192	//Flag "n", custom
ADMIN_LEVEL_C		16384	//Flag "o", custom
ADMIN_LEVEL_D		32768	//Flag "p", custom
ADMIN_LEVEL_E		65536	//Flag "q", custom
ADMIN_LEVEL_F		131072	//Flag "r", custom
ADMIN_LEVEL_G		262144	//Flag "s", custom
ADMIN_LEVEL_H		524288	//Flag "t", custom
ADMIN_MENU		1048576	//Flag "u", menus
ADMIN_ADMIN		16777216	//Flag "y", default admin
ADMIN_USER		33554432	//Flag "z", default user
And the function
PHP Code:
get_user_flagsuser 
returns the sum of every flag user has. How can I retrieve all the flags in different vars ? For example if user has Admin_immunity admin_kick and admin_ban , get_uset_flags will return 13 . How can I have "1" in one var , "4" in another and "8" in third ?
m0v3 is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-17-2009 , 10:56   Re: Quite a strange problem :)
Reply With Quote #2

boolget_user_flags( user ) & ADMIN_KICK)

That return true o false if user have it.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
m0v3
Member
Join Date: May 2009
Old 08-17-2009 , 11:00   Re: Quite a strange problem :)
Reply With Quote #3

Thank You
m0v3 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 15:00.


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