Raised This Month: $ Target: $400
 0% 

register_concomd with multiple access levels


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DPT
Member
Join Date: Jun 2011
Old 02-12-2012 , 21:44   Re: register_concomd with multiple access levels
Reply With Quote #8

Emp, to be honest, I did not understand you clearly.. Is there any easier method of checking if the user has either ADMIN_BAN or ADMIN_LEVEL_H or ADMIN_LEVEL_G.. Can't we do it using the get_user_flags function? How would the if statement look like?

This if statement didn't really work:

PHP Code:
new uflags get_user_flags(id)
if (
uflags != ADMIN_BAN uflags != ADMIN_LEVEL_G uflags != ADMIN_LEVEL_H)
return 
PLUGIN_HANDLED 
DPT is offline
 



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 09:51.


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