No, this should do it:
PHP Code:
public HamKilled_Post(iPlayer)
{
new iPlayers[32], iNum, CsTeams:csPlayerTeam
csPlayerTeam = cs_get_user_team(iPlayer)
get_players(iPlayers, iNum, "ae" ,(csPlayerTeam == CS_TEAM_T) ? "TERRORIST" : "CT")
if (!iNum)
{
AllPlayersDead(csPlayerTeam)
}
}
public AllPlayersDead( CsTeams:csDeadTeam )
{
//All players on csDeadTeam are dead
if(!g_GameAvailable || !g_GameStart || g_GameEnd)
return;
if ( !pev_valid( csDeadTeam == CS_TEAM_T ? g_TerroristBase : g_CTBase ) )
{
Game_Ending( 5.0 , 0 , csDeadTeam == CS_TEAM_CT ? CS_TEAM_T : CS_TEAM_CT );
}
}
__________________