VoidExpanse/scope-chat: Difference between revisions
(Created page with "<noinclude> Category:VoidExpanse/api_scopes </noinclude> = Scope chat = Used to control chat messages. '''Visibility:''' Global. == List of functions == {{Scripting_ap...") |
No edit summary |
||
Line 23: | Line 23: | ||
* string: message| | * string: message| | ||
void | | void | | ||
<pre style="margin:0px;">chat.SendToPlayer("somePlayer | <pre style="margin:0px;">chat.SendToPlayer("somePlayer", "Mwahahahaha");</pre> | | ||
Sends message to specified player. | Sends message to specified player. | ||
}} | }} |
Revision as of 09:41, 13 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", "Mwahahahaha"); |
Description | ||
Sends message to specified player. |
SendToPlayer | ||
---|---|---|
Arguments | Returns | Example |
|
void |
chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha"); |
Description | ||
Sends message to specified player. |