[ANY] Name Change Punisher (Updated 2011-07-13)
6 Attachment(s)
My servers have had an influx of spammers who use name changing scripts as of recently.
Therefore, I wrote a quick script to help get rid of them. What it does is track name changes, and if X name changes happen within Y seconds of each other, it kicks or bans them. This plugin was tested on Team Fortress 2. On games that support sv_namechange_cooldown_seconds (HL2:DM, DoD:S, CS:S, TF2, and possibly others): You should adjust the ncp_detectiontime based on the values you use for sv_namechange_cooldown_seconds. For instance, if sv_namechange_cooldown_seconds is 20 (the default), ncp_detectiontime should be somewhere between 25 and 30. The above should be considered mandatory to block LMAOBox. Changelog:
This plugin creates a configuration file: cfg/sourcemod/namechangepunisher.cfg The following convars exist in this plugin:
At present there is no cvar to disable the plugin. FAQ: Q. Why is it amount of time between detections and not the number of detections in a certain amount of time? A. That would add a lot of complexity to the plugin, mainly with having to track ncp_detections -1 timestamps for each user that has changed their names. For performance reasons, it's recommended in SourcePawn that you don't re-index arrays. Get Plugin link does not work because this plugin requires SourceBans include file sourcebans.inc. |
Re: [ANY] Name Change Punisher
Quote:
Anyways, installing this myself; I heard about what happened on OCR from Gamemaster, and I'm glad you've made this to combat the problem. I'll report back with feedback if I find anything. |
Re: [ANY] Name Change Punisher
Quote:
The cvar description in the plugin will be fixed in the next release as well. Quote:
|
Re: [ANY] Name Change Punisher
Quote:
|
Re: [Any] Name Change Punisher
Been running fine for some time now without running into any problems. Haven't hit it kicking anyone incorrectly as of yet.
|
Re: [Any] Name Change Punisher
I need to investigate the interaction between this plugin and SourceBans. I have a feeling SourceBans isn't catching bans set by this.
|
Re: [Any] Name Change Punisher
Updated to version 1.0.1
I updated the plugin to have a command source for bans. Unfortunately, my understanding of SourceBans is that it doesn't catch bans set using BanClient or BanIdentity. Sadly, this plugin uses BanClient. However, this update will make the OnBanClient hook work so other plugins can catch when this ban occurs. Edit: SourceBans expects plugins to send bans to it via its own native. Stupid, stupid, stupid. Then again, SourceBans is in desperate need of a rewrite now that nearly everything uses SourceMod 1.3 or newer. |
Re: [ANY] Name Change Punisher (Updated 2011-07-08)
2 Attachment(s)
I've written a version that uses SourceBans if it's present, but I need to do some testing tonight to make sure it works.
I've attached it to this post (it reports as version 1.1), but the main post won't be updated until I make sure it works. Also, it likely won't compile using the web compiler because it uses sourcebans.inc, so I also included the .smx file. |
Re: [ANY] Name Change Punisher (Updated 2011-07-08)
OK, I tested the SourceBans version post #8 (1.1) and I get the following errors:
1. No Ban 2. Spams the client console & chat with: #Name_change_limit_exceded 3. Reports as version: "Name Change Punisher" (1.0.1) by Powerlord - (Not Version 1.1) 4. Sourcemod error log: PHP Code:
Metamod:Source version 1.9.0-dev - Build ID: 758:caf7d6dd8b80-dev SourceMod Version: 1.4.0-dev - Build ID: 3307:88825dc19d2b-dev This plugin will be very useful to us. Let me know if you need any other info, testing or help. Request: Can you have it warn the player after X times before ban? (We do have some pubbers who like to change their names a lot.) |
Re: [ANY] Name Change Punisher (Updated 2011-07-08)
4 Attachment(s)
Quote:
Quote:
Unfortunately, as you can see, TF2 isn't actually translating that message. It could (in theory) be caused by me hooking the name change event. I'll have to test it on a server without my plugin loaded to find out. Quote:
Quote:
I had to check the SourceMod translations wiki to see what was wrong with it. Turns out I had the last two arguments backwards. I've attached a new version that should be fixed (and actually report as 1.1). Quote:
|
All times are GMT -4. The time now is 00:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.