Chat functions¶
-
class ChatFunctions¶
Public Static Functions
-
static void SendMessage(unsigned short pid, const char *message, bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept¶
Send a message to a certain player.
- Parameters
pid – The player ID.
message – The contents of the message.
sendToOtherPlayers – Whether this packet should be sent to players other than the player attached to the packet (false by default).
skipAttachedPlayer – Whether the packet should skip being sent to the player attached to the packet (false by default).
- Returns
void
-
static void CleanChatForPid(unsigned short pid)¶
Remove all messages from chat for a certain player.
- Parameters
pid – The player ID.
- Returns
void
-
static void CleanChat()¶
Remove all messages from chat for everyone on the server.
- Returns
void
-
static void SendMessage(unsigned short pid, const char *message, bool sendToOtherPlayers, bool skipAttachedPlayer) noexcept¶