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

swear filter 1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 09-13-2005 , 00:55   swear filter 1
Reply With Quote #1

should put badwords.ini in addons/amxmodx/configs...
and just add each badword as a new line.
you can only have up to 120 badwords.

** I'm gonna add more responses soon ima have like 75 different responses **
Attached Files
File Type: zip badwords.ini.zip (122 Bytes, 365 views)
File Type: sma Get Plugin or Get Source (amx_swearfilter1.sma - 549 views - 1.3 KB)
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
eFrigid
Senior Member
Join Date: Aug 2005
Location: 3o3
Old 09-13-2005 , 11:21  
Reply With Quote #2

Nice installing it when i get home!
__________________
lol
eFrigid is offline
Send a message via AIM to eFrigid Send a message via MSN to eFrigid Send a message via Skype™ to eFrigid
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-13-2005 , 11:42  
Reply With Quote #3

Nice idea but it pales in comparison to Anti-Bigot with RegX matching. Don't be mislead by the description for Anti-Bigot. You can add any type of word/phrase you want to handle. It's not limited to racist words.

As an aside, you should place your INI files in the .\configs directory.
Brad is offline
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 09-13-2005 , 12:11  
Reply With Quote #4

well it was hard to make for me...
and of corse its no match to the fancy ones but its nice and simple...
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-13-2005 , 12:17  
Reply With Quote #5

Oh, something else I just noticed. You should post your SMA file to your first post and the ZIP file should just contain your INI file.

The SMA file because, well, because I'm pretty sure you're supposed to. The INI file only file in the ZIP because the rest is redundant once you post the SMA file.

Quote:
Originally Posted by smallwimpyboy
and of corse its no match to the fancy ones but its nice and simple...
Yeah, uh... Anti-Bigot isn't such a fancy pants plugin. It's rather simple too. Don't let the RegEx throw ya.
Brad is offline
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 09-13-2005 , 12:22  
Reply With Quote #6

they are in it
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-13-2005 , 12:25  
Reply With Quote #7

Not a problem. Now, do you want some constructive criticism of your code?

I'll throw one out there right now because without changing it, this plugin has less of a chance to get approved.

Don't hardcode paths. This is bad...
Code:
new g_wordList[] = "addons/amxmodx/badwords.ini"
Unless you want me to tell you a better way, I'll let you figure out how on your own (it's better for you doing it on your own).
Brad is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 09-13-2005 , 12:26  
Reply With Quote #8

Quote:
Originally Posted by smallwimpyboy
they are in it
The SMA should be posted by itself, not within the ZIP. The ZIP should only contain the INI file.
Brad is offline
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 09-13-2005 , 12:29  
Reply With Quote #9

ok i did it thanks for telling me that
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
smallwimpyboy
Senior Member
Join Date: Aug 2005
Location: United States
Old 09-13-2005 , 12:31  
Reply With Quote #10

and i also changed the plugin so you have to put the badwords.ini in addons/amxmodx/configs
smallwimpyboy is offline
Send a message via AIM to smallwimpyboy Send a message via MSN to smallwimpyboy
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 13:26.


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