Garry's Mod Wiki

GM:OnPlayerChangedTeam

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

Page Links


Special Pages


Wikis

?

Render Time: 33ms

DB GetPage 4
Generate Html 6
SaveChanges (1) 11
Render Body 0
Render Sidebar 10