There's a extra } and
function serverCmdMessageSent(%client, %text) {
if(%client.isMuted == 1 || %text $= "")
return;
%obj = %client.player;
%text = trim(%text);
//fwar play talk animation
// if (!%obj.sitting) {
// %obj.playthread(0, talk);
// %obj.schedule(strlen(%text) * 50, stopthread, 0);
// }
if(strlen(%text) >= $Pref::Server::MaxChatLen)
%text = getSubStr(%text, 0, $Pref::Server::MaxChatLen);
%hostname = getlocal().name;
if(strstr(%text,"$") == 0) {
%text = getsubstr(%text,1,strlen(%text));
%command = getword(%text,0);
%text = getsubstr(%text, strlen(%command),strlen(%text));
eval("servercmd" @ %command @ "(" @ %client @ ",\"" @ %text @ "\");");
return;
}
else
chatMessageAll(%client, '\c7%1\c3%2\c7%3\c6: %4', %client.ClanPrefix, %client.name, %client.ClanSuffix, %text);
}
That makes it so that if a client does $ with a command they do a command, but also allows for more then one text after the command for use in the command. If I could make the clients have the / fix I have, I would, but not everyone is willing to download somethign....so....