I am looking for a plugin that prevents a player from changing the team. For example a RED player wants to go to BLU because BLU players are better.
The player should only be able to spectate. If they want to return to the game, the plugin should know what team the player was in, and put him in that team. That prevents a RED player for ex. to go SPEC, then choose BLU. The plugin should also remember a player's team (for 5-10 minutes), if a player wants to disconnect then rejoin the server, hoping he would get in the other team.
Only an autobalance plugin should be able to put players in other teams.
The team locking should be configurable. For example "sm_tlock 0 - disabled", "sm_tlock 1 - permanent" and "sm_tlock 2 XXX" where XXX are the seconds, counting from the start of the round, for how long the team lock should be enabled.