Lua function to send a chat message to all players.
◆ Implementation()
| void RoomService.SendChatMessage.Implementation |
( |
string | prefix, |
|
|
string | message ) |
|
inlineprivate |
Usage:
Lua function to send a chat message to all players.
Definition RoomServiceLuaFunctions.cs:17
Definition MyPluginInfo.cs:2
- Parameters
-
| prefix | The prefix for the message. |
| message | The content of the message. |
Source Code
33 {
34 if (string.IsNullOrEmpty(prefix) || string.IsNullOrEmpty(message))
35 {
36 return;
37 }
38
39 if (!RoomServiceUtils.IsOnlineHost())
40 {
41 return;
42 }
43
44 ZeepkistNetwork.SendCustomChatMessage(true, 0, message, prefix);
45 }