06.08.2011, 21:08
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. ?
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; }