team balance
#6

new Team1;
new Team2;
new Team3;
new Team4;

OnPlayerSpawn use
if(gTeam[playerid] == (your team here) )
{
Team1++;
// ADD THIS FOR ALL THE TEAMS YOU HAVE, Team2, Team3, Team4
}
OnPlayerDeath use
if(gTeam[playerid] == (your team here) )
{
Team1--;
// ADD THIS FOR ALL THE TEAMS YOU HAVE, Team2, Team3, Team4
}

OnPlayerRequestSpawn use
public OnPlayerRequestSpawn(playerid)
{
if(Team1 > Team2 || Team1 > Team3 || Team1 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team2 > Team1 || Team2 > Team3 || Team2 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team3 > Team1 || Team3 > Team2 || Team3 > Team4) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
if(Team4 > Team1 || Team4 > Team2 || Team4 > Team3) return GameTextForPlayer(playerid, "~r~This team is full!", 600, 5);
return 1;
}
Reply


Messages In This Thread
team balance - by BlackWolf120 - 23.02.2011, 17:09
Re: team balance - by Hashski - 23.02.2011, 18:09
Re: team balance - by Serbish - 23.02.2011, 18:27
Re: team balance - by BlackWolf120 - 23.02.2011, 20:30
Re: team balance - by BlackWolf120 - 08.03.2011, 01:30
Re: team balance - by Roperr - 07.10.2011, 23:30

Forum Jump:


Users browsing this thread: 1 Guest(s)