Skip to content

Latest commit

 

History

History
45 lines (42 loc) · 1.52 KB

bz_sendTextMessagef.md

File metadata and controls

45 lines (42 loc) · 1.52 KB
since category signatures returns
2.4.0
Chat Messages
dataType name description default
int
from
From who the message will be
dataType name description default
int
to
The player ID that will be receiving the message. To send messages to all players, use the `BZ_ALLUSERS` constant.
dataType name description default
const char*
fmt
The message to send
dataType description hide
...
Depending on `fmt`, the function may expect a sequence of additional arguments to replace a format specifier
true
dataType name description default
int
from
From who the message will be
dataType name description default
bz_eTeamType
to
The team to send the message to
dataType name description default
const char*
fmt
The message to send
dataType description hide
...
Depending on `fmt`, the function may expect a sequence of additional arguments to replace a format specifier
true
dataType description
bool
Returns false if the message failed to send

Send a formatted message to a player or team.

Notes

  • For the from parameter, it is recommended to use the BZ_SERVER const; it is discouraged to send messages on behalf of players.
  • You may also use the same receiving player ID as the sending player ID for it to appear as the player is messaging themselves.