Posts: 132
Threads: 52
Joined: Mar 2009
I made an TDM and sometimes , the team gets UNBALANCED , and i would like to know how could i make an team balancer, can anyone post an team balancer code for me please and thank you
Posts: 309
Threads: 9
Joined: Apr 2009
Reputation:
0
When did they get unbalanced ... when someone joins or when someone leaves?
Posts: 309
Threads: 9
Joined: Apr 2009
Reputation:
0
OK ..so i guess he should then check the density of teams whenever someone disconnect or connect to the server .... and he should change the team of those who have the least score or the new who joined to the team having low players ..... change the teams until they got slightly balanced.
Posts: 132
Threads: 52
Joined: Mar 2009
Yeh , but how would i do that
Posts: 309
Threads: 9
Joined: Apr 2009
Reputation:
0
well .. i need to see the code .... in which you have managed the Teams
Posts: 382
Threads: 1
Joined: Nov 2007
Reputation:
0
When they are about to select a skin, ( OnPlayerRequestSkin ), check if the team related to that skin has less players then the other team, if so, tell him he has to select an other team. It's as easy as that, I did the thinking, now the only thing you have to do is work it out into code that SA:MP can run.