Unnamed
public text v1 · immutablepublic IsTeamDead(Team)
{
for(new t=0; t<MAX_PLAYERS; t++)
{
if(gTeam[t] == Team)
{
new Float:iHealth,members,dead;
members++;
GetPlayerHealth(t,iHealth);
if(iHealth <= 0)
{
dead++;
}
if(members == dead) // members and dead both start as 0. If the player is not dead
{ // It will return true and not continue through the other players.
return true; // Ends the function and returns true.
}
}
}
return false;
}