Raised This Month: $ Target: $400
 0% 

make a whole plugin only work with flagged users


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-19-2009 , 12:23   Re: make a whole plugin only work with flagged users
Reply With Quote #4

Quote:
Originally Posted by SnoW View Post
How do you think that is_user_admin, could have something to do with flag d? Anyway...
Code:
if(get_user_flags(index) & ADMIN_BAN)
      //User has flag admin_ban (what's d flag)
if(~get_user_flags(index) & ADMIN_BAN)
     //User doesn't, so you can return handled here if it fits your needs.

didnt see the whole post. and typo.

if(!get_user_flags(index) & ADMIN_BAN)

question wouldnt
PHP Code:
if(get_user_flags(id) != ADMIN_BAN)
plugin return 1

work to block someting as well if user dosent have admin ban
Doc-Holiday 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 01:39.


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