Raised This Month: $51 Target: $400
 12% 

Simple Swear Filter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Johnny got his gun (102)
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 04-26-2004 , 01:48   Simple Swear Filter
Reply With Quote #1

/* AMX Mod script.
*
* (c) Copyright 2004, SuicideDog
* This file is provided as is (no warranties).
* Code gleemed from old RAV plugin.
*
* Simple Swear filter. Replaces badwords with *'s
*
* Uses swearwords.ini file (/$customdir/swear/swearwords.ini)
* It can use the same file as RS's advanced swear filter.
*
* I made this because it's easier to use. No config and one ini file
*
*/

Tested on CS and DOD .. but I think it would work on other mods.
Attached Files
File Type: zip swearwords.zip (782 Bytes, 16683 views)
File Type: sma Get Plugin or Get Source (swear_filter.sma - 26003 views - 1.8 KB)
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog is offline
AssKicR
Veteran Member
Join Date: Mar 2004
Location: Norway-Europe(GTM+1)
Old 04-26-2004 , 04:41  
Reply With Quote #2

There is already a great swear filter

http://forums.alliedmods.net/showthread.php?t=547
__________________
My Plugins

Got ??
AssKicR is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 04-26-2004 , 20:57  
Reply With Quote #3

I know there is one.. but if you read this one .. it's the "SIMPLE" swear filter. By simple I mean basic feature and simple to use. One ini file.. and can even use the one that RS's Advanced Swear Filter uses.

Look I (and a lot of other ppl) don't need or don't want all the features that one has. So why would I run a big plugin when I can get the job done with this one which uses less memory and less cpu?

I'm not putting down his swearfilter.. in fact I think it's an awesome plugin.. but for me it's really bloated for the features I'm using. Whats wrong with running lean tight plugins that only do what you need them to?
If you want I can call this one "swear-filter lite".

For the Board moderators.. if you feel this is a reduntant plugin I then just delete the sucker. If I have miss something in the code that isn't to AMXX standards please let me know and I will fix it.
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog is offline
euph
New Member
Join Date: Apr 2004
Old 04-27-2004 , 05:12  
Reply With Quote #4

can you help?

Quote:
L 04/26/2004 - 23:52:08: [AMXX] Run time error 22 on line 0 (plugin "swear_filter.amx")
amxx_mm_i686.so v0.16
statsme_mm_i386. v2.8.2
fun_amx_i686.so v0.16
cstrike_amx_i686 v0.16
csstats_amx_i686 v0.16
euph is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 04-27-2004 , 13:34  
Reply With Quote #5

Is it working? Did you create the swearword.ini file? I will look at the code and see what could be causing that. There was a couple log statements that I wasn't sure if it was 100% amxx compatible. I will look at it tonight.
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 04-27-2004 , 13:52  
Reply With Quote #6

hey, if you look into it today,
could you please add admin-immunity?

sometimes it's just needed to swear at someone (yes! admins swear as well!).

would be great if you could do that.

thanks for your work
FeuerSturm is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 04-27-2004 , 16:53  
Reply With Quote #7

I can add that .. but just to let you know if you put this AFTER the admin chat plugin, you can always swear in a tsay :p . If you put it before it will catch all the tsays and what not also :p
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 04-27-2004 , 18:15  
Reply With Quote #8

not bad, didn't know that, but the problem is that
not all members of my clan got access to the admin-chat etc.
so combining admin immunity with the reserved slot for example
would be great

thanks for your work!
FeuerSturm is offline
euph
New Member
Join Date: Apr 2004
Old 04-27-2004 , 21:39  
Reply With Quote #9

Quote:
Originally Posted by KiN | SuicideDog
Is it working? Did you create the swearword.ini file? I will look at the code and see what could be causing that. There was a couple log statements that I wasn't sure if it was 100% amxx compatible. I will look at it tonight.
I had the advance swer filter installed before, and had it workign. It was crashing my server so I commented it out in the plugin.ini and added this one. Heres how it shows up in amx_plugins.

Quote:
1706 Currently loaded plugins:
name version author file status
unknown unknown unknown swear_filter.am running
It seems to be loaded, but it doesn't filter any words. Let me know if I can provide you with any other info to help fix it.

-mark
euph is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 04-27-2004 , 22:39  
Reply With Quote #10

Hmm .. it's working for me.

[ 9] Swear Filter 1.0 SuicideDog swearfilter.amx running

Did you try to compile it yourself?.. Do you have the swearwords.ini file in the right location? It should be in the custom dir
../addons/amxx/custom/swear/swearwords.ini
__________________
Code:
#include <amxmodx> public client_connect(id){   new playerIQ    get_player_IQ(id,playerIQ)   if(playerIQ < 100 )  {     client_cmd(id,"say I'm too stupid to play;quit")  }   PLUGIN_CONTINUE}
KiN | SuicideDog 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 09:23.


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