Quote:
Originally Posted by ff7chocoboknight
using onPlayerChats() shows the players chat for a second then its blocked I use this split second by saying the message over and over showing the message before the words are blocked eachtime (i do this on Zone)
|
Where as
PHP Code:
//#CLIENTSIDE
function ChatBar.onAction()
{
if (ChatBar.text == "test!")
{
ChatBar.text = "Filtered!";
}
}
This will set the player.chat as 'Filtered' instantly. ChatBar.onAction goes before onplayerchats(). If you were to set player.chat as "", the onplayerchats event won't even be called.