SA-MP Forums Archive
I have 2 Teams, I want to balance them with a mesage, This Team Is full.. HELP - 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: I have 2 Teams, I want to balance them with a mesage, This Team Is full.. HELP (/showthread.php?tid=91509)



I have 2 Teams, I want to balance them with a mesage, This Team Is full.. HELP - RyDeR` - 15.08.2009

Hello I have 2 Teams, I want to balance them with a mesage, This Team Is full please choose the other? How to do this?


Re: I have 2 Teams, I want to balance them with a mesage, This Team Is full.. HELP - dice7 - 15.08.2009

pawn Код:
new team1, team2;

//when player joins team1
if(team1+2 > team2 && team2 <= team1)
//player go to team2
team2++;
else
//player go to team1
team1++;