Topic title may be a bit confusing, but can't think of anything else. Whenever I use cs_get_user_team() in a function like this, it doesn't work. Is there anything obvious that I've done wrong or... something I don't know.
PHP Code:
// Function to get alive team count
fnGetAliveTeamCount(CsTeams:Team)
{
new iCount = 0;
for(new i; i <= g_iMaxPlayers; i++)
{
if(cs_get_user_team(i) == Team)
++iCount;
}
return iCount;
}