
Here's the code to do it:
Code: Select all
function MessageHud_Edit::eval(%this)
{
%text = trim(%this.getValue());
if(%text !$= "")
{
%ops = restWords(%text);
if(firstWord(%text) $= "/bind")
{
moveMap.bindCmd(keyboard,getSubStr(%ops, 0, 1),"","commandToServer('messageSent',\""@restWords(%ops)@"\");");
%text = restWords(%ops);
MessageHud.close();
return;
}
if(MessageHud.isTeamMsg)
commandToServer('teamMessageSent', %text);
else
commandToServer('messageSent', %text);
}
MessageHud.close();
}
EDIT: I forgot to mention... Your ignore script won't work if you have this installed.