map/rounds change
#2

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

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;
}
Not tested
Reply


Messages In This Thread
map/rounds change - by bboytimix - 11.08.2011, 16:10
Re: map/rounds change - by Unknown_Killer - 11.08.2011, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)