View Single Post
  #1  
Old 03-06-2007, 06:25 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Hide player.chat?

I've developed a custom chat system which doesnt use player.chat. The problem is, many other scripts use onPlayerChats() and i'd like to retain their functionality but not show player.chat

I tried this:

NPC Code:

function onPlayerChats() {
player.chat = "";
}



When it's serverside, onPlayerChats() is triggered in other weapons but the chat still shows briefly.

When it's clientside, the chat is not shown but onPlayerChats() in other NPCs is never triggered.

So is there any way to set player.chat but make it invisible? This seems like it would be the best method.
__________________

Coming soon (Hopefully:P)
Reply With Quote