Raised This Month: $32 Target: $400
 8% 

Print to chat area...


Post New Thread Reply   
 
Thread Tools Display Modes
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-18-2004 , 07:20  
Reply With Quote #41

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.
BeetleFart is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode