Raised This Month: $51 Target: $400
 12% 

How check user have specific admin flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mosi
Junior Member
Join Date: Feb 2018
Old 02-13-2018 , 07:14   How check user have specific admin flag
Reply With Quote #1

Hi . i want to check a user has a specific access flag like 't'
how can i do it ?
mosi is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-13-2018 , 07:47   Re: How check user have specific admin flag
Reply With Quote #2

Below is for checking a single flag in character format. If you use the ADMIN_FLAG_X variant you do not need read_flags().

PHP Code:
if ( get_user_flagsid ) & read_flags"t" ) ) 
__________________
Bugsy is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-13-2018 , 08:18   Re: How check user have specific admin flag
Reply With Quote #3

Browse through amxmisc.inc file.
__________________
Relaxing 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 04:52.


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