OnServerMessage
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnServerMessage( string message, string username, string color, ulong userid )
{
Puts( "OnServerMessage works!" );
}
Location
- ConVar.Chat::Broadcast(string message, string username, string color, ulong userid)
csharp
public static void Broadcast(string message, string username = "SERVER", string color = "#eee", ulong userid = 0uL)
{
if (Interface.CallHook("OnServerMessage", message, username, color, userid) != null)
{
return;
}
string text = username.EscapeRichText(false);
ConsoleNetwork.BroadcastToAllClients("chat.add", new object[]
//---