Raised This Month: $ Target: $400
 0% 

Spam Features [Anti-Spam + Custom Name Tags]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Beta
BANNED
Join Date: Apr 2011
Old 11-20-2011 , 16:38   Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #1

Spam Features [Anti-Spam + Custom Name Tags]



How It Started?
Spam Features was an idea of mine, it started off in my gameserver when I was sick of players joining with annoying names and Spamming IP addresses or websites, So I decided to see what I could do with AMXX and the outcome was this plugin! I successfully made use of spamming players by either completely changing name or tagging them

What does it do?
Spam Features detects when a Player changes his name, you can specify which names you want to be tagged in names.ini In addition to this feature the plugin will block the Player from using IP address or website in his name or chat.

Edit: Website blocking being fixed.

About
This plugin is very efficient as it only takes action when player changes his info, thanks to the "client_infochanged" function. It will also be run just once on "client_connect" to make sure they don't get have a spam name in first place.

Key features
  • Blocks players spamming in server chat.
  • Blocks players spamming name.
  • Tagging of specific names in names.ini (lowercase/caps detection)
  • Fast & Efficient detection of name changes.

How do I use it?
  • Get the Plugin
  • Copy it to /gamedir/addons/plugins
  • Add spamfeatures.amxx to /gamedir/addons/configs/plugins.ini
  • Copy names.ini to /gamedir/addons/configs
  • Add your custom names to names.ini
  • Restart server or change map.
  • Watch plugin take effect.

Don't forgot to set the cvars in amxx.cfg!

Cvars
Set the Spam nick change using: amx_changename "Name" default "Player"
Set the custom names tag using amx_nametag "Tag |" default "CS Player |"

Modules
  • AMXMODX
  • AMXMISC
  • REGEX

Credits
Code help from Drekes
Code help from Challenge
The Rest: Myself

Features in development
  • An extra ini file for full name changing aswell as tagging
  • Customizable punishments via cvars
  • Suggestions & Optimzations?
  • Bug fixes (such as website blocking not working correctly)

Have fun and I hope my plugin helps you
Attached Files
File Type: ini names.ini (26 Bytes, 905 views)
File Type: sma Get Plugin or Get Source (spamfeatures.sma - 1597 views - 3.6 KB)

Last edited by Beta; 12-20-2011 at 13:30. Reason: 1.2 Released - Code Optimizations
Beta is offline
Beta
BANNED
Join Date: Apr 2011
Old 11-20-2011 , 20:45   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #2

~~~~~RESERVED~~~~~
Beta is offline
guven5
Senior Member
Join Date: Jul 2010
Location: counter strike 1.6 downl
Old 12-14-2011 , 16:30   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #3

working good but need admin immunity
__________________
guven5 is offline
Reallite
Senior Member
Join Date: Sep 2011
Old 12-14-2011 , 21:05   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #4

...
__________________
Quote:
Originally Posted by Arkshine
Most of things people think it's impossible, it's actually possible, you just need to find a way.

Last edited by Reallite; 07-31-2016 at 04:58.
Reallite is offline
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 12-16-2011 , 19:01   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #5

does it work, did anyone test this?
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 12-16-2011 , 19:36   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #6

I tested it when he first released it, it didn't work. In fact I tried it on his server. I haven't been back since so I don't know if it works now.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 12-17-2011 , 02:53   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #7

Call a function in plugin_init to read file, read it in plugin_precache have no sense (you don't precache anything).
You should use a dynamic array to store names: as, you'll have no names limit (just an idea).
PHP Code:
new PLUGIN[]="Spam Features"
new AUTHOR[]="Beta"
new VERSION[]="1.1" 
You should use preprocessor defines.
__________________
Kidev is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-17-2011 , 04:18   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #8

Quote:
Originally Posted by -Kid- View Post
PHP Code:
new PLUGIN[]="Spam Features"
new AUTHOR[]="Beta"
new VERSION[]="1.1" 
You should use preprocessor defines.
Constants are fine too.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 12-17-2011 , 08:12   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #9

Quote:
Originally Posted by Devil259 View Post
Constants are fine too.
They use memory, defines doesn't.
__________________
Kidev is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 12-17-2011 , 08:15   Re: Spam Features [Anti-Spam + Custom Name Tags]
Reply With Quote #10

Defines use memory when they are "strings".
__________________

Last edited by micapat; 12-17-2011 at 08:17.
micapat 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 05:26.


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