Raised This Month: $ Target: $400
 0% 

[SOLVED] custom /admins "online" ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 02-23-2013 , 17:19   [SOLVED] custom /admins "online" ?
Reply With Quote #1

im using this method to assign ranks to clients...

PHP Code:
/* Rank Names */
enum
{
    
OWNER,
    
HADMIN,
    
ADMIN,
    
PLAYER,
    
    
AUTHORIZED
};

new const 
AccessType[AUTHORIZED][]=
{
    
"Manager",
    
"Head Admin",
    
"Admin",
    
"Player"
};
/* Rank Names End */ 
and how they get assigned to clients

PHP Code:
public client_connect(id)
{
    
    
rank1 get_user_flags(id) & ADMIN_LEVEL_B;
    
rank2 get_user_flags(id) & ADMIN_LEVEL_C;
    
rank3 get_user_flags(id) & ADMIN_LEVEL_D;
    
rank4 get_user_flags(id) & ADMIN_ALL;
    
    if(
rank1 rank2 rank3)
    {
        
RankName[id] = OWNER;
    }
    
    else if(
rank2 && rank3)
    {
        
RankName[id] = HADMIN;
    }
    
    else if(
rank3)
    {
        
RankName[id] = ADMIN;
    }        
        
    else if(
rank4)
    {
        
RankName[id] = PLAYER;
    } 
now my question is how to script this into a client_print ?

i know i havent tried yet... just need a shove in right direction ?

thanks,

Last edited by Blizzard_87; 02-23-2013 at 18:03.
Blizzard_87 is offline
 


Thread Tools
Display Modes

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 21:47.


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