Chat functions

class ChatFunctions

Public Static Functions

void SendMessage(unsigned short pid, const char *message, bool sendToOtherPlayers, bool skipAttachedPlayer)

Send a message to a certain player.

Return
void
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).

void CleanChatForPid(unsigned short pid)

Remove all messages from chat for a certain player.

Return
void
Parameters
  • pid: The player ID.

void CleanChat()

Remove all messages from chat for everyone on the server.

Return
void