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
Tulcod (talk | contribs)
No edit summary
Zehra (talk | contribs)
redirect, since functions are in official docs
Tag: New redirect
 
(3 intermediate revisions by 2 users not shown)
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: From which player do we need to pretend this message is coming from?
* int to: To which player or team are we sending this message?
* const char* message: The message to be sent
 
==Description==
This API function will cause the server to send a message to a player or team
 
==Usage==
If you want to send a message, use this function. This can be used for private messages based on previous input.
 
==Notes==
Want to send a message coming from the server, and not pretend to be someone else? Use BZ_SERVER for the from argument.

Latest revision as of 00:52, 12 November 2025