SendChatMessageToAll
Внешний вид
Sends a chat message to all clients.
Syntax
<syntaxhighlight lang="C#" >void NAPI.Chat.SendChatMessageToAll(string sender, string message, bool oldColors = true);</syntaxhighlight> <syntaxhighlight lang="C#" >void NAPI.Chat.SendChatMessageToAll(string message, bool oldColors = true);</syntaxhighlight>
Required Arguments
- message: parameter input should be in string type.
Optional Arguments
- sender: parameter input should be in string type.
- oldColors: parameter input should be in bool type.
Usage examples
<syntaxhighlight lang="C#" >NAPI.Chat.SendChatMessageToAll("Example!");</syntaxhighlight> <syntaxhighlight lang="C#" >NAPI.Chat.SendChatMessageToAll("Server", "Example!");</syntaxhighlight>