team balancing - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: team balancing (
/showthread.php?tid=136512)
team balancing -
Headshot1108 - 25.03.2010
Hello.
I had searched this, but don't get working team balance..
I would like that a team (example the usa) maximum 2 more players as the other teams have..
my try with one team:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
for(new p = 0; p < GetMaxPlayers(); p++)
{
if(2 > gTeam[p] == TEAM_USA > gTeam[p] == TEAM_EUROPE > gTeam[p] == TEAM_TALIBAN > gTeam[p] == TEAM_RUSSIA > gTeam[p] == TEAM_ASIA)
{
SendClientMessage(playerid,0xFFFFFFAA, "Team USA is full.");
return 0;
}
}
return 1;
}
but doesn't work.
Re: team balancing -
Headshot1108 - 25.03.2010
sorry for bump, but i need it
Re: team balancing -
Headshot1108 - 26.03.2010
bump again