Quote:
Originally Posted by FonixPro20
The point is The Alive Players Bro .....
PHP Code:
public fnGetAlive( CsTeams:csTeam ) // csTeam can be CS_TEAM_CT, CS_TEAM_T, CS_TEAM_UNASSIGNED, CS_TEAM_SPECTATOR
{
new iMax = get_maxplayers( );
new iCount = 0;
for( new iClient = 1; iClient < iMax; iClient++ )
if( is_user_alive( iClient ) )
if( cs_get_user_team( iClient ) == csTeam )
iCount++;
return iCount;
}
And MSG Just For Fun /// Welcome ( Name ) To Server , Have Fun !! \\\
Alive Players Making by : marcelowzd
|
You don't need to say everywhere that i did this part for you. It is very simple, really.
But i also told you that the first method (the one that used get_players) is also better.
__________________