Raised This Month: $32 Target: $400
 8% 

[TF2] Anti-NameHack


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mitch
Junior Member
Join Date: Aug 2011
Plugin ID:
3616
Plugin Version:
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin to add basic protection against hackers that use namestealers or players that spam name changes to avoid admins.
    Old 04-13-2013 , 00:33   [TF2] Anti-NameHack
    Reply With Quote #1

    Description:

    A plugin to add basic protection against hackers that use namestealers or players that spam name changes to avoid admins.

    Info:

    The detection methods that i use are the most common that i have seen used on the servers i have tested it on. This plugin at the time of posting is based on detections in 5 minute increments and the default value of the "sv_namechange_cooldown_seconds" which is 20 seconds. ex, 10 name changes in 5 minutes will result in a ban, or 4 name steals in 5 minutes will result in a ban.
    The name change detections are reset every 5 minutes and the name steal detections are reset every 5 minutes with the condition that they haven't changed their name in the last 5 minute period. Any player banned for name stealing is also ip banned. Has support for sourcebans.

    Cvars:

    sm_anh_version ; Version Cvar.
    sm_anh_changes "10" ; Number of name changes before a player is banned. Default is 10
    sm_anh_matches "4" ; Number of name matches before a player is banned. Default is 4

    Ban Messages:

    If the plugin detects name change spamming it will ban with this message,
    "[Auto]Detected Namehacking #1-<name changes>-<name matches>"
    ex, "[Auto]Detected Namehacking #1-10-0"

    If the plugin detects name stealing it will ban with this message,
    "[Auto]Detected Namehacking #2-<name changes>-<name matches>"
    ex, "[Auto]Detected Namehacking #2-4-4"

    Commands:
    None

    Installation:
    Place AntiNameHack.smx into the addons/sourcemod/plugins/ folder.

    Versions:
    1.1, Initial release;
    Attached Files
    File Type: sp Get Plugin or Get Source (AntiNameHack.sp - 1236 views - 5.6 KB)
    File Type: smx AntiNameHack.smx (4.7 KB, 2146 views)

    Last edited by Mitch; 04-13-2013 at 00:44.
    Mitch is offline
    cool_myll
    SourceMod Donor
    Join Date: Aug 2011
    Old 04-13-2013 , 17:55   Re: [TF2] Anti-NameHack
    Reply With Quote #2

    Have you considered intergrating it to a smac module?
    __________________
    cool_myll is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 04-13-2013 , 18:19   Re: [TF2] Anti-NameHack
    Reply With Quote #3

    Thank you for putting in sourcebans compatibility too.. most banning plugins forget this for some reasons
    __________________
    lyric is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 04-13-2013 , 21:05   Re: [TF2] Anti-NameHack
    Reply With Quote #4

    Quote:
    Originally Posted by lyric View Post
    Thank you for putting in sourcebans compatibility too.. most banning plugins forget this for some reasons
    If SourceBans would just use OnBanClient / OnBanIdentity which was added to SourceMod 1.0 by their request this wouldn't be a problem.
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 04-13-2013 , 21:16   Re: [TF2] Anti-NameHack
    Reply With Quote #5

    Quote:
    Originally Posted by Powerlord View Post
    If SourceBans would just use OnBanClient / OnBanIdentity which was added to SourceMod 1.0 by their request this wouldn't be a problem.
    so sourcebans requested OnBanClient /OnBanIdentity to be added in a future sourcemod build then just went with something else?
    __________________
    lyric is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 04-13-2013 , 21:55   Re: [TF2] Anti-NameHack
    Reply With Quote #6

    Quote:
    Originally Posted by lyric View Post
    so sourcebans requested OnBanClient /OnBanIdentity to be added in a future sourcemod build then just went with something else?
    That's what I've heard. If I wasn't lazy, I'd search the AlliedModders board for who originally said it (I think it was psychonic, but it could have been asherkin)
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 04-14-2013 , 15:56   Re: [TF2] Anti-NameHack
    Reply With Quote #7

    Quote:
    Originally Posted by Powerlord View Post
    If SourceBans would just use OnBanClient / OnBanIdentity which was added to SourceMod 1.0 by their request this wouldn't be a problem.
    Servercommand sm_ban

    Errrrrrryday
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    Marcus_Brown001
    AlliedModders Donor
    Join Date: Nov 2012
    Location: Illinois, United States
    Old 04-15-2013 , 00:21   Re: [TF2] Anti-NameHack
    Reply With Quote #8

    Quote:
    Originally Posted by friagram View Post
    Servercommand sm_ban

    Errrrrrryday
    The use of ServerCommand is not recommended. There are a few reason I know of not to use it, but more knowledgeable people on this board can give you specifics; all I know is that if you do not absolutely have to use ServerCommand, I wouldn't.
    Marcus_Brown001 is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 04-15-2013 , 03:42   Re: [TF2] Anti-NameHack
    Reply With Quote #9

    I was actually commenting on powerlord's post and how sourcebans has had bad integration with many plugins in the past. Most do not want to take the time to include it as a library, or have just done things like set a convar or use servercommand. Dunno what all this fuss about servercommand is. If you send the command by userid, it will go through.... Providing the plugin taking the command is loaded, which is the problem. When you use it, you don't really know, it is assumed. Now obviously it is not as efficient as a native, but... Well sometimes plugins you are working with do not provide natives, its not worth writing natives for them, and its jsut easier to use servercommand? For private use i do not see how it is an issue, for posting up here.. people will download it, servercommands will go out, and nothing will happen. Sad for you.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    island55
    Senior Member
    Join Date: Aug 2010
    Location: charleston
    Old 04-13-2013 , 21:04   Re: [TF2] Anti-NameHack
    Reply With Quote #10

    aw yes this is great. I hate when you mute someone for mic spamming then they turn to chat spam then once you gag them they turn to changing their name repeatedly, like your not going to ban them or something... anyways this does it automatically, which is great!
    island55 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 17:35.


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