View Single Post
  #5  
Old 09-09-2009, 09:46 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Crow View Post
I would like to have a way to change the own player.chat locally. Yea, I know, sounds awkward. Let me explain. Let's say the player enters "Hi there" into the chat bar and hits enter. Let's also assume that some dork added "there" to the clientside swear filter. Last, but not least, the player has this swear filter enabled (it's optional ), but most of the other players don't. My goal: filter the word locally for the player, and show it to those who have the filter disabled.
Way too complicated explanation for such an easy thing. Well, you hopefully know what I mean anyway.
Then just use something like this clientside:
PHP Code:
function onRemotePlayerChats(temp.objtemp.chat)
{
  
temp.obj.chat _FILTERFUNCTON(temp.chat);

Other players won't see the change because it is clientside.
__________________
Skyld
Reply With Quote