Named in the code or data of server.
PlayerChatEvent[GameEventHandler("player_chat")]
public HookResult OnPlayerChat(PlayerChatEvent args) {
// args.Teamonly, args.Userid, args.Playerid, args.Text
return HookResult.Continue;
}| Field | Type | Deadworks property | Valve's comment |
| teamonly | bool | Teamonly bool | true if team only chat |
| userid | player_controller | Userid CBasePlayerController? | chatting player |
| playerid | short | Playerid int | chatting player ID |
| text | string | Text string | chat text |