AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How can catch top players lowest players in both teams (https://forums.alliedmods.net/showthread.php?t=183990)

newcomer 04-29-2012 11:34

How can catch top players lowest players in both teams
 
Example at New round, how can catch them

Devil259 04-29-2012 11:54

Re: How can catch top players lowest players in both teams
 
PHP Code:

new plr32 ], num;
new 
idtop;
get_playersplrnum"h" );

for( new 
0numi++ )
{
    
id plr];

    if( !
top )
    {
        
top id;
    }
    
    else
    {
        new 
idFrags get_user_fragsid );
        new 
topFrags get_user_fragstop );
        if( 
idFrags topFrags )
        {
            
top id;
        }
        
        else if( 
idFrags == topFrags )
        {
            new 
idDeaths cs_get_user_deathsid );
            new 
topDeaths cs_get_user_deathstop );
            if( 
idDeaths topDeaths )
            {
                
top id;
            }
            
            else if( 
idDeaths == topDeaths )
            {
                if( 
random_num1) == )
                {
                    
top id;
                }
            }
        }
    }
}

// top = best player index 


newcomer 04-29-2012 13:21

Re: How can catch top players lowest players in both teams
 
thank you very much :)


All times are GMT -4. The time now is 07:41.

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