This is called when a player changes their team.
- function onPlayerTeamChange( Player player, int old, int new )
- player - The pointer of the player
- old - The team player was in before the change
- new - Their new team
This event does not handle return values.
This message will notify the player which team they just entered.
- function onPlayerTeamChange( player, old, new )
- MessagePlayer( "You entered team " + new, player );
- return 1;
The function MessagePlayer was used in this example. More info about it can be found in the corresponding page.