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
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-19-2009 , 06:25   Re: make a whole plugin only work with flagged users
Reply With Quote #3

Quote:
Originally Posted by Plug me up View Post
make it only work with players with acess flag d.
Quote:
Originally Posted by NcB_Sav View Post
Where ever the plugin is called put this

PHP Code:
if(!is_user_admin(id))
{
   return 
PLUGIN_HANDLED

right?
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.
SnoW is offline
Send a message via MSN to SnoW
 



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