VoidExpanse/scope-chat: Difference between revisions
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 20: | Line 20: | ||
{{Scripting_api|SendToPlayer| | {{Scripting_api|SendToPlayer| | ||
* string: player_to | * string: player_to | ||
* string: player_from | * ''(optional) string: player_from'' | ||
* string: message| | * string: message| | ||
void | | void | | ||
<pre style="margin:0px;">chat.SendToPlayer("somePlayer", "Mwahahahaha"); | <pre style="margin:0px;"> | ||
chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha"); | |||
chat.SendToPlayer("somePlayer", "Mwahahahaha"); | |||
</pre> | | |||
Sends message to specified player. | Sends message to specified player. | ||
}} | }} |
Latest revision as of 10:31, 18 February 2014
Scope chat
Used to control chat messages.
Visibility: Global.
List of functions
SendToAll | ||
---|---|---|
Arguments | Returns | Example |
|
void |
chat.SendToAll("dlirry", "Mwahahahaha"); |
Description | ||
Sends message to all connected players. |
SendToPlayer | ||
---|---|---|
Arguments | Returns | Example |
|
void |
chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha"); chat.SendToPlayer("somePlayer", "Mwahahahaha"); |
Description | ||
Sends message to specified player. |