OnJoinTeam
From the Scripting Manual
procedure OnJoinTeam(ID, Team: byte); Parameter Info: ID (Byte): ID of the player. Team (Byte): Team the player has requested to join. Description: This procedure will be called every time a player joins a team.