View Single Post
MyPc
Senior Member
Join Date: Sep 2011
Old 10-03-2011 , 09:34   Re: how get count of players
Reply With Quote #2

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_logevent("round_end"2"1=Round_End");
}

public 
round_end()
{
    
    new 
players32 ], players_count
    
new terror_count 0ct_count 0
    get_players
playersplayers_count )
    for( new 
iplayers_counti++ )
    {
        switch( 
get_user_team) )
        {
            case 
1:
            {
                
terror_count++
            }
            case 
2:
            {
                
ct_count++
            }
        }
    }
    

MyPc is offline