20.06.2013, 01:25
Use Foreach, then make a variable Called new Dead[MAX_PLAYERS]; and then when a team member die make this (OnPlayerDeath):
Then loop through all the team players :
and check if they are dead like this:
This is just an example..
Hope i helped.
pawn Код:
Dead[playerid] ++;
pawn Код:
foreach (new i : Player)
pawn Код:
if(Dead[i] == 10) // Change 10 to your max team players
{
// Your code if they are dead
}
Hope i helped.