11.09.2011, 12:04
Can anyone help me build an auto balance system, I already tried to build one for my self but fail! I took a look at the samp forums, no tutorials. I saw some other topics but useless.
Well the basic function will be that OnPlayerRequestClass check, so that if a player for example selects TEAM_COPS and there are already 4>5 cops so that it gives an error. It must check to see if there are more players in one team than the other and if its equal then it should allow to spawn in any team. I am using gTeams.
Other I want it to check after 3 minutes too see if there are more players in a team than the other, probably should check for TEAM_COPS>TEAM_TERRORISTS-2 (so that it doesn't get bugged just changing players) and then it picks a random player and changes his skin, team, color.
If you can't do both of them, its ok, even one of them is appreciated!
Well the basic function will be that OnPlayerRequestClass check, so that if a player for example selects TEAM_COPS and there are already 4>5 cops so that it gives an error. It must check to see if there are more players in one team than the other and if its equal then it should allow to spawn in any team. I am using gTeams.
Other I want it to check after 3 minutes too see if there are more players in a team than the other, probably should check for TEAM_COPS>TEAM_TERRORISTS-2 (so that it doesn't get bugged just changing players) and then it picks a random player and changes his skin, team, color.
If you can't do both of them, its ok, even one of them is appreciated!