Garry's Mod Wiki

Garry's Mod Wiki

  GM:OnPlayerChangedTeam( Player ply, number oldTeam, number newTeam )

Description

We advise against using this. It may be changed or removed in a future update. Use GM:PlayerChangedTeam instead, which works for every Player:SetTeam call.

Called when a player has changed team using GM:PlayerJoinTeam.

This hook will not work with hook.Add and it is only called manually from GM:PlayerJoinTeam by the base gamemode

Arguments

1 Player ply
Player who has changed team
2 number oldTeam
Index of the team the player was originally in
3 number newTeam
Index of the team the player has changed to

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...