VoidExpanse/scope-chat: Difference between revisions
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
* string: message| | * string: message| | ||
void | | void | | ||
<pre style="margin:0px;">chat.SendToPlayer("somePlayer", "Mwahahahaha");</pre> | | <pre style="margin:0px;">chat.SendToPlayer("somePlayer", "dlirry", "Mwahahahaha");</pre> | | ||
Sends message to specified player. | Sends message to specified player. | ||
}} | }} | ||
Line 31: | Line 31: | ||
* 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", "dlirry", "Mwahahahaha"); |
Description | ||
Sends message to specified player. |
SendToPlayer | ||
---|---|---|
Arguments | Returns | Example |
|
void |
chat.SendToPlayer("somePlayer", "Mwahahahaha"); |
Description | ||
Sends message to specified player. |