Raised This Month: $ Target: $400
 0% 

Getting users with "ADMIN_LEVEL_H" print out


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 02-09-2010 , 14:35   Getting users with "ADMIN_LEVEL_H" print out
Reply With Quote #1

Hey!
I've got a big problem. I try to find all people with "ADMIN_LEVEL_H" flag.
And to input them. Well i kinda have my own private jailbreak vip plugin so, ill just put the NEEDED parts of the code
PHP Code:
public plugin_init() {
    
register_clcmd("say /vips""print_vips");
    
register_clcmd("say_team /vips""print_vips");
}
public 
print_vips(id) {
    new 
vipnames[31][31];
    new 
plid,vipcount,x;
    for (
plid 1plid <= get_maxplayers() ; plid++;) {
        if (
is_user_connected(plid)) {
            if(
get_user_flags(plid) & ADMIN_LEVEL_H) {
            
get_user_name(plidvipnames[vipcount++], 31);
                if (
vipcount 0) {
                    for (
0countx++) {
                        
ColorChat(idTEAM_COLOR"^x04[FRUKTAI.NET] ^x03Online VIP players: ^x04%%s"vipnames[x], < (vipcount-1));
                    }
                } else {
                    
ColorChat(idTEAM_COLOR"^x04[FRUKTAI.NET] ^x03No admins online");
                }
            }
        }
    }

I just dont understand how to get them, if anyone could help me in CLEAR code so i could understand it and i really want to learn how to get them
Thanks
Lure.d is offline
Send a message via Skype™ to Lure.d
 



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 07:27.


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