LastSaid()

If you ever coded in E2 (Expression 2) you would understand what I am trying to do already.

If you know E2


 if(Player:lastSaid() == "command"){...}

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 instead 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.

Thanks ^^.