Table of Contents

Delegate Listeners.OnPlayerChat

Namespace
CounterStrikeSharp.API.Core
Assembly
CounterStrikeSharp.API.dll

Called when a player sends a chat message.

[ListenerName("OnPlayerChat")]
public delegate void Listeners.OnPlayerChat(CCSPlayerController player, string message, bool teamChat)

Parameters

player CCSPlayerController

The player who sent the chat message.

message string

The content of the chat message.

teamChat bool

If the chat message was sent to team only.