AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Swear Filter + Punishment plugin (https://forums.alliedmods.net/showthread.php?t=36688)

imported_HoAx 10-11-2004 11:20

Swear Filter + Punishment plugin
 
Just go this for amxx and works great! please converter to Sourcemod whenever

xeroblood 10-20-2004 12:51

I am rebuilding it for AMX & AMXX, and when the HL2-SDK is finally out, and SourceMod is finished, I will then convert it yet again for HL2.. but we're a long way from there yet!! Patience!! :)

imported_malex 10-20-2004 14:40

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\


All times are GMT -4. The time now is 04:18.

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