If you ever coded in E2 (Expression 2) you would understand what I am trying to do already.
If you know E2
[CODE] if(Player:lastSaid() == "command"){...}[/CODE]
If you don't know E2, basically all i want it to do is run a function if a certain string is said through chat. In basic terms, if someone says something, a function is ran.
After i have that figured out, I want to be able to have someone type something, and [b]instead[/b] of it going into the chatbox it runs a function.
Any ideas on how to approach this?
On server, add a hook into PlayerSay and return empty quotes if the text is what you want.
[QUOTE=Amokov;31222544]On server, add a hook into PlayerSay and return empty quotes if the text is what you want.[/QUOTE]
Thanks ^^.
Sorry, you need to Log In to post a reply to this thread.