Team Balance and Auto Team Balance
#2

Make a global variable, increase it when player join the team, decrease it when the player disconnect/join another team.

Example;
PHP код:
static TeamBalance 0;
//OnPlayerConnect/Join team
if(TeamBalance == 5) return SCM(..); // or whatever
TeamBalance++;
//OnPlayerDisconnect/Leave team
TeamBalance--;
//You need to modify it if there is more than one team. 
Reply


Messages In This Thread
Team Balance and Auto Team Balance - by NeXoR - 11.10.2016, 12:59
Re: Team Balance and Auto Team Balance - by oMa37 - 11.10.2016, 13:02
Re: Team Balance and Auto Team Balance - by iLearner - 11.10.2016, 13:02
Re: Team Balance and Auto Team Balance - by NeXoR - 11.10.2016, 13:06
Re: Team Balance and Auto Team Balance - by iLearner - 11.10.2016, 13:26
Re: Team Balance and Auto Team Balance - by gurmani11 - 11.10.2016, 13:51
Re: Team Balance and Auto Team Balance - by NeXoR - 11.10.2016, 13:55
Re: Team Balance and Auto Team Balance - by Isolated - 11.10.2016, 14:16
Re: Team Balance and Auto Team Balance - by Konstantinos - 11.10.2016, 14:32
Re: Team Balance and Auto Team Balance - by gurmani11 - 11.10.2016, 14:54

Forum Jump:


Users browsing this thread: 3 Guest(s)