GM:PlayerJoinTeam

From Garry's Mod
Jump to: navigation, search
 GM:PlayerJoinTeam( )

Description

Makes the player join a specified team. This is a convenience function that calls Player:SetTeam and runs the GM:OnPlayerChangedTeam hook.

Arguments

Player ply

Player to force

Arguments

number team

The team to put player into
Personal tools
Navigation