SendChatMessageToAll: Difference between revisions
(Created page with "__NOTOC____NOEDITSECTION__{{Template:Server_side_csharp}} Sends a message to the targeted player. '''2 overloads''' ==Syntax== <syntaxhighlight lang="C#" >void NAPI.Chat.Sen...") |
No edit summary |
||
| Line 1: | Line 1: | ||
Sends a message to the targeted player. | Sends a message to the targeted player. | ||
Revision as of 01:13, 27 November 2019
Sends a message to the targeted player.
2 overloads
Syntax
void NAPI.Chat.SendChatMessageToPlayer(Client player, string message, bool oldColors = true);
void NAPI.Chat.SendChatMessageToPlayer(Client player, string sender, string message, bool oldColors = true);
Required Arguments
- player: parameter input should be in Client type.
- 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
NAPI.Chat.SendChatMessageToPlayer(player, "This is a message!");
NAPI.Chat.SendChatMessageToPlayer(player, "Example says", "This is a message!");