First, I would like to thank you for that wonderful link.
What I understand from that method is that players are sorted when they join the server.
First player becomes T, Next three that join become CT.
What I'm looking for is, people are allowed to choose the team they want to be in, but are restricted is the team limit reaches a certain ratio. So I'm trying to make something in the general vicinity of
(Attemping to ratio 2 CTS : T)
if CT /2 +2 < T
negate moving to T?
EDIT: My main goal. When someone joins the server and selects a team, the mod checks the ratio using a mathematical system above. If the team has reached ratio limit, to force join the other team.