I was making a special script for my server that when you talk with < in front of a word it will do like *Name what ever after <* in chat
i got the script to work but it wont parent right
I added this to the script
parent::serverCmdMessageSent(%client, %msg);
The code is like this
function serverCmdMessageSent(%client, %msg)
{
if(getsubStr(%msg,0,1) $= "<")
{
messageall('msgClientJoin',"\c5"@%client.getPlayerName()@" "@%msg@"");
}
parent::serverCmdMessageSent(%client, %msg);
}
Anyone see whats wrong with the script?
Do i need to put it in a package?
Edit: I heard that you need to parent Inside a Package;
Im gonna try it inside a package and see if it fixes the problem if not i would like to know how to fix.