Raised This Month: $ Target: $400
 0% 

Simple Anti-Ad


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose       
Mati_
Member
Join Date: Sep 2010
Old 11-22-2010 , 11:13   Simple Anti-Ad
Reply With Quote #1

Hello,
I just wrote a small plugin which should block advertisements pretty effective and isn't bloated with hundreds of lines or configuration files. Couldn't find any plugin doing it that way, so I quickly wrote it.

Any URLs and/or IP addresses get blocked, messages from admins will be ignored.

Installation is as usual, download the AMXX-file or compile locally, put it in amxmodx/plugins and edit configs/plugins.ini.
Attached Files
File Type: sma Get Plugin or Get Source (antiad.sma - 6601 views - 997 Bytes)
Mati_ is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 11-22-2010 , 14:19   Re: Simple Anti-Ad
Reply With Quote #2

i like it when a plugin is simple to use
__________________
vato loco [GE-S] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-22-2010 , 14:47   Re: Simple Anti-Ad
Reply With Quote #3

Would be nice if you could replace the ip with **.**.**.** and maybe whitelist?
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 14:49   Re: Simple Anti-Ad
Reply With Quote #4

What about cvars to control if admins are ignored, or whitelist (like xPaw), or replacements (like xPaw), or punishments?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Mati_
Member
Join Date: Sep 2010
Old 11-22-2010 , 16:16   Re: Simple Anti-Ad
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
Would be nice if you could replace the ip with **.**.**.**
Well the goal is imo that people don't get bothered at all with such messages, so they get blocked.

Quote:
and maybe whitelist?
Yeah, server-related links shouldn't be blocked. Insofar I would propose creating a string-array in the beginning, and the user can define his URLs there for minimum configuration effort?

Quote:
replacements
Don't see that usefull for an anti-ad plugin, maybe for a swear filter, but the goal for spam messages is a block, not a replacement.

Quote:
punishments
That might be a good addition, but I can't really imagine people continuing advertising when seeing it gets blocked, and additionally no one gets bothered by it.
Mati_ is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 11-22-2010 , 16:24   Re: Simple Anti-Ad
Reply With Quote #6

How about catching is_user_admin(id) on connect, cause it does everytime check it if a player writes something in chat, and that happens usually alot.
bibu is offline
Mati_
Member
Join Date: Sep 2010
Old 11-22-2010 , 16:35   Re: Simple Anti-Ad
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
How about catching is_user_admin(id) on connect, cause it does everytime check it if a player writes something in chat, and that happens usually alot.
Yeah true, that should be better. Will change that on the next small update.
Mati_ is offline
xakintosh
I run no-steam servers!
Join Date: Feb 2010
Location: Edge of nowhere
Old 11-22-2010 , 17:11   Re: Simple Anti-Ad
Reply With Quote #8

Sounds COol ^^
xakintosh is offline
Send a message via Yahoo to xakintosh Send a message via Skype™ to xakintosh
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 11-22-2010 , 17:29   Re: Simple Anti-Ad
Reply With Quote #9

Added do my server, tested and does the job well.
vL. is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-22-2010 , 21:55   Re: Simple Anti-Ad
Reply With Quote #10

Quote:
Originally Posted by Mati_ View Post
Yeah, server-related links shouldn't be blocked. Insofar I would propose creating a string-array in the beginning, and the user can define his URLs there for minimum configuration effort?
Would be better to read from a file.

Quote:
Originally Posted by Mati_ View Post
Don't see that usefull for an anti-ad plugin, maybe for a swear filter, but the goal for spam messages is a block, not a replacement.
That's just your opinion.
I would rather see what the player said with the spam replaced with X's or something.

Quote:
Originally Posted by Mati_ View Post
That might be a good addition, but I can't really imagine people continuing advertising when seeing it gets blocked, and additionally no one gets bothered by it.
Some server administrators are strict on advertisement, and want punishment instead of blocking.

--

You need to remember that when you release a plugin, it is to be for the people and what needs they might have for the plugin.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 13:43.


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