Raised This Month: $ Target: $400
 0% 

Removing chat if contains a certain word.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
srx
New Member
Join Date: Jan 2005
Old 01-05-2005 , 18:39   Removing chat if contains a certain word.
Reply With Quote #1

Hay all. Im currently seeking an amx mod for a gaming network. I looked into making it myself but just havent had the time to learn another language.

The mod must remove all chat from normal game if it contains X-Spectate. Will help our admins track down on wall hacks =)

Any help would be apreciated. Thanks
srx is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 01-05-2005 , 20:50  
Reply With Quote #2

ill try it in a day or so.
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-05-2005 , 22:02  
Reply With Quote #3

Code:
#include <amxmodx>   public plugin_init() {     register_plugin("X-Spectate Removal","0.10","Avalanche");     register_clcmd("say","cmd_say",-1);   }   public cmd_say(id) {     new text[256];     read_args(text,255);     if(containi(text,"X-Spectate") != -1) {       new authid[32];       get_user_authid(id,authid,31);       server_print("User #%d (%s) said X-Spectate string",id,authid);       return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE;   }

If they say something that contains "X-Spectate" it will block it and send a print message to the server.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
srx
New Member
Join Date: Jan 2005
Old 01-07-2005 , 13:01  
Reply With Quote #4

thankyou vmuchly worked well.
srx is offline
Reply



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:19.


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