11.10.2016, 13:02
Make a global variable, increase it when player join the team, decrease it when the player disconnect/join another team.
Example;
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.