From Garry's Mod
Request a player to join the team. This function will check if the team is available to join or not.
This hook is called when the player runs "changeteam" in the console.
The player to try to put into a team
Team to put the player into if the checks succeeded