SendChatMessageToPlayer
Внешний вид
(перенаправлено с «NAPI.Chat.SendChatMessageToPlayer»)
Sends a message to the targeted player.
2 overloads
Syntax
<syntaxhighlight lang="C#" >void NAPI.Chat.SendChatMessageToPlayer(Client player, string message, bool oldColors = true);</syntaxhighlight> <syntaxhighlight lang="C#" >void NAPI.Chat.SendChatMessageToPlayer(Client player, string sender, string message, bool oldColors = true);</syntaxhighlight>
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
<syntaxhighlight lang="C#" >NAPI.Chat.SendChatMessageToPlayer(player, "This is a message!");</syntaxhighlight> <syntaxhighlight lang="C#" >NAPI.Chat.SendChatMessageToPlayer(player, "Example says", "This is a message!");</syntaxhighlight>