Raised This Month: $ Target: $400
 0% 

Admin levels and flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 09-08-2007 , 23:11   Re: Admin levels and flags
Reply With Quote #6

Almost all plugins use cmd_access(). This doesn't.

Code:
public visible(id,level,cid) {     if (!(get_user_flags(id)&ADMIN_BAN))     {         return PLUGIN_HANDLED     }
It might have been wise to use level in the bit comparison from the start. (Edit: As _Master_ already suggested.)

Last edited by Lee; 09-08-2007 at 23:14.
Lee 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 16:11.


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