Function send_message

Source
pub fn send_message(
    pid: u16,
    message: &str,
    send_to_other_players: bool,
    skip_attached_player: bool,
)
Expand description

Send a message to a certain player.

pid The player ID.
message The contents of the message.
send_to_other_players Whether this packet should be sent to players other than the
player attached to the packet (false by default).
skip_attached_player Whether the packet should skip being sent to the player attached
to the packet (false by default).

Returns void