function NMH_Type::send(%this) {
%text = cleanStringemot(trim(%this.getValue()));
if(strstr(strlwr(%text),"/") == 0) {
%text = getSubStr(%text,1,strlen(%text));
%command = getword(%text,0);
if(getwordcount(%text)>=2) {
%vars = getwords(%text,1,getwordcount(%text));
%vars = getsubstr(%vars,0,strlen(%vars)-1);
eval("commandtoserver(\'"@%command@"\',\"" @ %vars @ "\");");
//echo("commandtoserver(\'"@%command@"\',\"" @ %vars @ "\");");
}
else {
eval("commandtoserver(\'"@%command@"\');");
//echo("commandtoserver(\'"@%command@"\');");
}
canvas.popdialog(NewMessageHud);
return;
}
else if(%text !$= "") {
if(NewMessageHud.isTeamMsg)
commandToServer('teamMessageSent',%text);
else if(NewMessageHud.isLocalMsg)
commandToServer('localMessageSent',%text);
else
commandToServer('messageSent',%text);
}
canvas.popdialog(NewMessageHud);
//activateKeyboard();
}
And I'll try your script there, rudy. Since you don't have Retail, it may not work, since you can't check. I'm not saying you can't script btw.