HTOTM: FUSION
Original Post
How to intercept a text entered in a сonsole?
How to intercept a text entered in a сonsole? Tried to do it with the function of function console(s, i), but I get in the variable not entered text , but result of the executed command in сonsole
Expanding on 6d23, what you do is like:

function chat(text, type)
 if(text == "crash") then while(true) do echo("LOL") end end
 if(text == "penis") then run_cmd("re 100 100") end 
 return 1 --this stops the text from showing
end
add_hook("console", "chat", chat)
Stuff like that :P
:D