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
Now I know my abc's! This user title is the property of SkulFuk.
Join Date: Apr 2007
Feb 13, 2010
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