Okay guys I've found the only remaining problem, as well as sorted out the rest.
I got it to work, but my issue is when I actually send the chat message it seems to be calling the function twice.
Like:
JazZ: Hi
JazZ: Said Hi
JazZ: Said Hi
You see?
package SimpleTest
{
function clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg)
{
parent::clientCmdChatMessage(%a,%b,%c,%fmsg,%cp,%name,%cs,%msg);
if(%name $= $Pref::Player::NetName)
{
schedule(50, 0, SendMessage);
}
}
};
activatepackage(SimpleTest);
function testWord(%msg)
{
getWord(%msg, 0);
return;
}
function SendMessage()
{
%TestVar1 = testWord(%msg);
commandToServer('messagesent',"Jazzy: " @ %TestVar1);
return;
}
This has this problem, anyone have a reason as to why?