Raised This Month: $ Target: $400
 0% 

how to get team leaders CT and T


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 01-01-2009 , 09:19   Re: how to get team leaders CT and T
Reply With Quote #4

Try it but is not very precise.
PHP Code:
get_leaderteam )
{
    new 
score = - 1;
    new 
fragsindex 0;
    
    
// g_maxplayers = get_maxplayers();
    
    
for( new 1<= g_maxplayersi++ )
    {
        if( !
is_user_connected) )
            continue;
        if( 
get_user_team) != team )
            continue;
        
        
frags get_user_frags);
        if( 
frags >= score )
        {
            
score frags;
            
index i;
        }
    }
    
    return 
index;

Btw, there was a plugin that glows the best player from every team.
__________________

anakin_cstrike 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 09:09.


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