Raised This Month: $ Target: $400
 0% 

Admin Counting [HELP FAST PLEASE]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Trafikkz
Junior Member
Join Date: Apr 2010
Old 11-17-2010 , 16:42   Re: Admin Counting [HELP FAST PLEASE]
Reply With Quote #3

Still not working....when 2 admins come online they both have access.

Well, what I want to make is.

How could I make a code that when an user connects on the server, the server will check if there are 1 or more admins, if there are, the user connected will have acces bz. I know how to make to set the acces, but I don't know how to make the count. Help me please. Something like:

Code:
public onclientconnect(id) {
    
    new id, count, x
    
    for(id = 1 ; id <= maxplayers ; id++)
        if(is_user_connected(id))
            if(get_user_flags(id) & ADMIN_BAN)
                get_user_name(id, aname[count++], 31)
                
    if(count >= 1)
        new flags = read_flags("z")
        set_user_flags(id, flags)
        
}

Last edited by Trafikkz; 11-17-2010 at 17:09.
Trafikkz 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 11:19.


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