Author Topic: Modded Chat  (Read 462 times)

I want it so that if someone sends me a message, then it will look like this:
11/11/11 1:14:50 Person: Hi

(Normalized Above):
Person: Hi

So basically I want the date next to the person's name when they talk.

This is what I've got:
Code: [Select]
package ModdedChat
{
function newChatHud_addLine(%text)
{
parent::newChatHud_addLine(%text);
%replace = strReplace(%text,%text,"");
if(%replace !$= %text)
{
newChatSO.addLine("\c4"@getDateTime()@" \c1"@%text);
}
}
};
activatePackage("ModdedChat");
What is happening is double chat:

(my chat)
Kid: Hi
11/11/11 1/10/1 Kid: Hi

You may also notice that I am new to using the strReplace function, lol.

Thank you, and please help me out here.

package ModdedChat
{
   function NewChatHUD_addLine(%text)
   {
      Parent::NewChatHUD_addLine("<spush>\c4" @ getDateTime() @ "<spop> " @ %text);
   }
};