Player onchat

From Fortress Forever Wiki
Revision as of 22:28, 25 June 2011 by Crazycarl (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This callback is called whenever the player sends a chat message.

Usage

function player_onchat( player, chatstring )
   --I hate chat
   return false
end

Return false to prevent the chat message from being sent to others