Quote:
Originally Posted by Rex Mundi
You could use ::ClientCommand (if we're still talking about plugins here).
Parse the first parameter for "say" or "say_team" if you wish. Then, once caught you can do what you want....PLUGIN_CONTINUE allows the command to carry on and behave as it would normally. PLUGIN_STOP squashes the command there and then and it will not be passed onto all the clients. I'm assuming your aiming for a swearfilter of similar?
The above is also the basis for one of the methods of restricting weapons in CS - parsing for "buy" and then parsing the second parameter for the items.
I suppose you could find a load of addresses and interface into where you're not intended to go, but I find the above much easier myself.
|
Say messages are not routed through ClienCommand function.