function console_input(text) --get user text
if (text=="hi")then --check the text
echo ("Hi to you too.") --do something
end
return 1 --don't show the original text
end
add_hook("console","",console_input) --make it work
Scripts can't recognize stuff like "/view" or "/hi". You need to write "/ec hi".