03.01.2016, 01:06
It's simple as this:
Replace "player's team" for the ID of the team a player is in.
0 = Team A
1 = Team B
2 = Total Amount of Teams
pawn Код:
new PlayersAliveOnTeam[2];
public OnPlayerDisconnect(playerid, reason)
{
if(IsPlayerAlive(playerid))
{
PlayersAliveOnTeam[player's team] --;
}
return 1;
}
public OnPlayerSpawn(playerid)
{
PlayersAliveOnTeam[player's team] ++;
return 1;
}
public OnPlayerDeath(playerid)
{
PlayersAliveOnTeam[player's team] --;
return 1;
}
0 = Team A
1 = Team B
2 = Total Amount of Teams

