This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.

Bz sendTextMessage: Difference between revisions

From BZFlagWiki
Jump to navigation Jump to search
AAA (talk | contribs)
wikify with definition lists, See Also section
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
Line 1: Line 1:
{{BZFS_API_Doc}}
#REDIRECT [[Category:BZFS API Docs]]
{{BZFS_API_Funcs}}
==Prototype==
* BZF_API bool bz_sendTextMessage (int from, int to, const char* message);
* BZF_API bool bz_sendTextMessage (int from, [[bz_eTeamType]] to, const char* message);
 
==Parameters==
; int from: The player ID that the message will appear to be from. This must be a valid player ID, or BZ_SERVER if the message is to be a system message.
; int to: The target player ID to send the message to. This must be a valid player ID or BZ_ALLUSERS if the message is to be broadcast to all connected users.
; [[bz_eTeamType]] to: The target team to send the message to. This must be a valid team enumeration from [[bz_eTeamType]].
; const char* message: The text of the message to be sent.
 
==Description==
This API function will cause the server to send a text message to a single player, all players, or team. The text message can be made to appear from any user or the server itself.
 
==See Also==
[[Bz_sendTextMessagef]]

Latest revision as of 00:52, 12 November 2025