SA-MP Forums Archive
Team Balancer - 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)
+--- Thread: Team Balancer (/showthread.php?tid=580694)



Team Balancer - SiNuS - 07.07.2015

Hello, i want to make a "Team balancer" for /join command


Код:
                       if(REDTEAMCOUNT == BLUETEAMCOUNT)
				{
				// Player Join in BLUE TEAM
				}
				if(REDTEAMCOUNT > BLUETEAMCOUNT)
				{
				// Player Join in BLUE TEAM
				}
				if(BLUETEAMCOUNT > REDTEAMCOUNT)
				{
				// Player Join in RED TEAM
				}
But it doens"t work..
I used the search function to look for something similar but nothing helped.


Re: Team Balancer - M4D - 07.07.2015

Код:
if(REDTEAMCOUNT > BLUETEAMCOUNT)
{
	// Player Join in BLUE TEAM
}
if(BLUETEAMCOUNT >= REDTEAMCOUNT)
{
	// Player Join in RED TEAM
}



Re: Team Balancer - SiNuS - 08.07.2015

same problem


Re: Team Balancer - unSatisfied - 08.07.2015

Can you show us more of your code? Make sure that you're adding 1 to the BLUETEAM and REDTEAM variable otherwise it won't work obviously.