Player onchat

From Fortress Forever Wiki
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