11.08.2011, 18:57
hmmm you have 2 choice
1) is to set timer to check if all players of team[playerid]=2 dead then SendRconCommand("gmx");
2) make a stock with variable when each player join team 2 set like team2++;
check this example
Not tested
1) is to set timer to check if all players of team[playerid]=2 dead then SendRconCommand("gmx");
2) make a stock with variable when each player join team 2 set like team2++;
check this example
pawn Код:
new team2;
stock CheckForalldead(playerid)
{
if(team2 == 0)
{
SendRconCommand("gmx");
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(team[playerid] == 2)
{
team2--;
CheckForalldead(playerid);
}
return 1;
}