Lua:BroadCastMessageToPlayer

From Fortress Forever Wiki
Jump to navigationJump to search


BroadCastMessageToPlayer

Sends a text message to a single player. Is it still broadcasting if it only goes to one person? Who came up with this crap?

Usage

BroadCastMessageToPlayer( player, message, duration )
BroadCastMessageToPlayer( player, message, duration, colorid )
BroadCastMessageToPlayer( player, message, duration, colorstring )

Input

  • player(CFFPlayer) The player to receive the message.
  • message(string) the message to display. Type in your own message, or use an entry from resource\FortressForever_english.txt.
  • duration(int) number of seconds to display
  • colorid(int) preset colors. See Lua:Flags#Color
  • colorstring(string) An RGB color string, e.g. "255 255 255"

Output

Returns nothing

Example

BroadCastMessageToPlayer( player, "#FF_NOTALLOWEDDOOR", 5, "255, 0, 0")