Team elimination.
#2

Use Foreach, then make a variable Called new Dead[MAX_PLAYERS]; and then when a team member die make this (OnPlayerDeath):

pawn Код:
Dead[playerid] ++;
Then loop through all the team players :

pawn Код:
foreach (new i : Player)
and check if they are dead like this:

pawn Код:
if(Dead[i] == 10) // Change 10 to your max team players
{
     // Your code if they are dead
}
This is just an example..

Hope i helped.
Reply


Messages In This Thread
Team elimination. - by iHaze. - 20.06.2013, 01:01
Re: Team elimination. - by SilverKiller - 20.06.2013, 01:25

Forum Jump:


Users browsing this thread: 1 Guest(s)