PHP Code:
function onPlayerChats() {
player.storedchat = player.chat;
player.chat = "";
}
Use player.storedchat to render the chat bubble for only the player(not other players). The only problem is this might interfere with chat commands... but I dunno. It may process commands before it clears it.