Difference between revisions of "Player onchat"

From Fortress Forever Wiki
Jump to navigationJump to search
m (New page: This callback is called whenever the player sends a chat message. ==Usage== player_onchat( player, chatstring ))
 
m
 
Line 2: Line 2:
  
 
==Usage==
 
==Usage==
player_onchat( player, chatstring )
+
function player_onchat( player, chatstring )
 +
    --I hate chat
 +
    return false
 +
end
 +
 
 +
Return false to prevent the chat message from being sent to others

Latest revision as of 21:28, 25 June 2011

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