Difference between revisions of "Lua:SmartMessage"

From Fortress Forever Wiki
Jump to navigationJump to search
(New page: {{Infobox manual/Header}} ==SmartMessage== Displays one text message for a specified player, another for that player's teammates, and another for the other team(s). ===Usage=== <pre>Smar...)
(No difference)

Revision as of 14:14, 11 May 2009


SmartMessage

Displays one text message for a specified player, another for that player's teammates, and another for the other team(s).

Usage

SmartMessage(player, playermessage, teammessage, otherteammessage)

Input

  • player(CFFPlayer) A player (such as the one who just grabbed a flag)
  • playermessage(string) message for the player
  • teammessage(string) message for the player's team
  • otherteammessage(string) message for the other team(s)

Type in your own message, or use an entry from resource\FortressForever_english.txt

Output

Returns nothing

Example

SmartMessage(player, "#FF_YOUDROP", "#FF_TEAMDROP", "#FF_OTHERTEAMDROP")