Raised This Month: $ Target: $400
 0% 

Swear Filter + Punishment plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
imported_malex
Senior Member
Join Date: Sep 2004
Old 10-20-2004 , 14:40  
Reply With Quote #3

There are all sorts of plugins for AMX Mod X that do little else besides convert said text into commands. Perhaps a generalized text parsing plugin could be made, one that would listen to text and interpret it based on rules. The rules could modify the text, or run commands, or do whatever else is needed.

With the promised regex support in SourceMod, this could be a sample config for such a plugin (most likely would have to be refined):

Code:
s/(badword|anotherone)/******/ continue
/(worstwordyoucansay|\Wur\W)/ run "sm_kick %id%" stop

/^@top (.*)$/ run "sm_tsay %1" stop
I think that's self explanatory. First line replaces badwords, the next one kicks people for saying really bad words, and the last one lets admins tsay without opening a console.

\malex\
imported_malex is offline
 


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 04:18.


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