Team elimination.
#1

Hello, I've saw a few servers having a feature which is called Team elimination or whatever, It means when the whole team is killed the other team wins, Either if 2 players went into a checkpoint, Their team wins.

I know how to make the checkpoint, But i don't know how to make the team elimination.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)