Player onchat

From Fortress Forever Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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