Raised This Month: $ Target: $400
 0% 

Limit ban time with admin levels


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-24-2010 , 17:27   Re: Limit ban time with admin levels
Reply With Quote #2

ADMIN_LEVEL_B admins cannot ban permanantly
PHP Code:
if( /* admin has flag ADMIN_LEVEL_B */ )
{
    
// set ban time to xxx

OR

Only ADMIN_LEVEL_A admins can ban permanantly.
PHP Code:
if( /* admin does not have ADMIN_LEVEL_A */ )
{
    
// set ban time to xxx

If neither of these work like you want then please explain in detail how exactly you want it to work. Also, you need to consider what happens if an admin does neither of these flags to decide on which to choose (or if I need to make a different one for you).
__________________

Last edited by fysiks; 10-24-2010 at 17:30.
fysiks 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 10:25.


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