Team Balance?
#1

How to Team Balance In A TDM Server? Like If Team 1 Has 25 Players And Team 2 Has 24 A Player Cannot Join Team 1. ?
Reply
#2

nyone Who Can Help?
Reply
#3

Would help if you posted part of your code...
Reply
#4

I Don't got a Code. I want A Code That Would Allow Team Balance In TDM Server.
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=224853
Next time use search button.
Reply
#6

maybe this example will help you

Код:
new team1 = 6;  // exm team 1 has 6 players
new team2 = 10;  // exm team 2 heas 10 players
new timer;



public OnFilterScriptInit()
{
	timer = SetTimer("balanceteams", 1000, 1);
	return 1;
}



public OnFilterScriptExit()
{
	return 1;
}


public balanceteams()
{
	if (team1 > team2)
	{
	  	team2++;
	  	team1--;
	}
	if (team1 < team2)
	{
		team2--;
	  	team1++;
	}
	if(team1 == team2)
	{
		KillTimer(timer);
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)