What's the function for when a client teamchats? I want to edit Script_ChatLogger to include teamchat messages. Even better, messageAll and messageAllExcept (Unless you're exempted from the messageAllExcept message)functions. I think these functions are server-sided.
package chatLogger
{
function clientcmdChatMessage(%client,%b,%c,%all,%PreTag,%name,%postTag,%msg)
{
parent::clientcmdChatMessage(%client,%b,%c,%all,%PreTag,%name,%postTag,%msg);
%newMsg=["[Global Chat]"]["@getDateTime()@"]["@%name@"]: "@%msg;
textToFileAppend(%newMsg,"ChatLogger.txt");
}
function clientcmdTeamChatMessage(%team,%client,%b,%c,%all,%PreTag,%name,%postTag,%msg)
{
parent::clientcmdTeamChatMessage(%team,%client,%b,%c,%all,%PreTag,%name,%postTag,%msg);
%newMsg="[@("Team Chat: ",%team)@]["@getDateTime()@"]["@%name@"]: "@%msg;
textToFileAppend(%newMsg,"ChatLogger.txt");
}
};
activatePackage(chatLogger);
function textToFileAppend(%text,%filename)
{
%file = new fileObject();
%file.openForAppend("Config/client/"@%filename);
%file.writeLine(%text);
%file.close();
%file.delete();
}