Need help with plugins or servers? Join our Discord

Modding Database

Up to date with Steam · checked 8s ago· Viewing build 6730 (Oct 01 2026), not the latest

player_team

game event

Declared in core.gameevents

Named in the code or data of server, client.

Deadworks (C#), as PlayerTeamEvent
[GameEventHandler("player_team")]
public HookResult OnPlayerTeam(PlayerTeamEvent args) {
	// args.UseridController, args.UseridPawn, args.Team, args.Oldteam, args.Disconnect,
	// args.Silent, args.Name, args.Isbot
	return HookResult.Continue;
}

Fields

FieldTypeDeadworks propertyValve's comment
useridplayer_controller_and_pawn
UseridController CBasePlayerController?
UseridPawn CBasePlayerPawn?
teambyte
Team int
team id
oldteambyte
Oldteam int
old team id
disconnectbool
Disconnect bool
team change because player disconnects
silentbool
Silent bool
namestring
Name string
isbotbool
Isbot bool

History

  1. 6696–6745first dumped