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

Bad name banning


Post New Thread Reply   
 
Thread Tools Display Modes
Author
TSCDan
Senior Member
Join Date: Jan 2005
Location: NY, USA
Plugin ID:
65
Plugin Version:
1.59
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bans/kicks players if they have a name that contains a phrase in bad_names.ini
    Unapprover:
    Reason for Unapproving:
    Reported to not be working.
    Old 07-05-2007 , 09:03   Bad name banning
    Reply With Quote #1

    Bad name banning
    This is a pretty simple plugin to ban anybody who joins with or changes their name to something that contains a bad phrase in the bad_names.ini. I created this to ban people with myg0t/mygot in their name, but it has been modified for any name. For those of you who don't know, myg0t is a group/clan of people who blatantly hack and ruin other people's fun, and then gloat about it to their friends. I got a bit tired of people doing so, so I did something about it

    At the request of ferret, I made this configurable to read any bad phrases from a config file. Thanks for all the help from the guys on IRC (Namely ferret )

    I have also added functionality of a whitelist: any steamID's that exist in it will not be banned no matter what the name is (as long as sm_bnb_allowimmun is 1). If sm_bnb_allowimmun is 0, you will be kicked/banned no matter what if you have a bad name.

    I also added a version that has Admin 'b' flag immunity. I'm retaining the old version in case there are some people who would prefer not to give admin privs out.

    Instructions
    WHITELIST VERSION
    Place BadNameBan.smx in plugins.
    Place bnb_whitelist.ini and bad_names.ini in configs. Edit them to your liking (which names should be banned or kicked/which steamID's will not be banned).
    Place the below cvars into your server.cfg (or any config that gets executed) and change them to what you would like.
    ADMIN VERSION
    Place BadNameBanAdmin.smx in plugins.
    Place bad_names.ini in configs, and edit it to your liking (which names should be banned or kicked).
    Place the below cvars into any config that gets executed and change them to your liking (with the exception of sm_bnb_allowimmun; it does nothing in this release).
    Any admins with 'b' flag will not be kicked by this version.

    Done!


    cvars
    sm_bnb_bantime - can be configured to set how long they should be banned for in minutes, default is -1 (just a kick), 0 = permanent.

    sm_bnb_reason - reason for why the player was kicked/banned. Default is "Bad name"

    sm_bnb_allowimmun - Allow immunities in the form of SteamID's in bnb_whitelist.ini.

    sm_bnb_log - Allow kicks/bans to be logged to an external log file, (sourcemod/logs/bnb_log_mmddYYYY.log) 0 off, 1 on

    changelog
    1.59 (9/23/07) - Coulda sworn that worked in the past... fixed two issues. Fully functional now
    1.58 (8/31/07) - Friggin vague documentation -_-* Fixed an issue with the flag being set in groups not working correctly. Should be all set now
    1.57 (8/30/07) - Fixed an issue where the admin check was done before the admin privs were loaded from SQL.
    1.56/1.46 (8/30/07) - Fixed a blonde moment (Using the rcon commands, not sm... gah!)
    1.45 (8/29/07) - Fixed a typo on the whitelist version.
    1.5 (8/24/07) - Different release to allow generic admins as immunity instead of separate whitelist. Admins with 'b' flag will not be banned.
    Removed sm_bnb_allowimmun for new release.
    1.4 - Added external logging capabilities via sm_bnb_log cvar (0 off, 1 on)
    Kicks are logged to logs/bnb_log_mmddYYYY.log
    1.3 - Added whitelist functionality and a few cvars.
    Any SteamID's in configs/bnb_whitelist.ini will not be banned as long as sm_bnb_allowimmun is 1
    Changed all cvar names to sm_*
    1.2 - Completely redid the plugin, added configurable names and bantime, renamed plugin.
    bnb_bantime can be -1 for just a kick, 0 for perm ban, or >0 for a ban in minutes.
    Added a reason cvar to change the reason of why they were banned/kicked
    Changed the default value of sm_bnb_bantime to -1 (just a kick)
    Config file (configs/bad_names.ini) has a one-name per line config, pretty simple.
    1.1 - Added mgb_version cvar
    1.0 - Release
    Attached Files
    File Type: ini bad_names.ini (169 Bytes, 1888 views)
    File Type: ini bnb_whitelist.ini (420 Bytes, 1617 views)
    File Type: sp Get Plugin or Get Source (BadNameBan.sp - 3047 views - 5.1 KB)
    File Type: sp Get Plugin or Get Source (BadNameBanAdmin.sp - 2656 views - 3.7 KB)

    Last edited by TSCDan; 09-23-2007 at 10:01.
    TSCDan is offline
    Send a message via AIM to TSCDan Send a message via MSN to TSCDan Send a message via Yahoo to TSCDan
    Rav3n!
    Junior Member
    Join Date: May 2007
    Location: UK
    Old 07-05-2007 , 09:22   Re: myg0t name banning
    Reply With Quote #2

    what do you mean by myg0t

    as a name or is this some other strange l33t speak think??
    Rav3n! is offline
    TSCDan
    Senior Member
    Join Date: Jan 2005
    Location: NY, USA
    Old 07-05-2007 , 09:23   Re: myg0t name banning
    Reply With Quote #3

    myg0t is a clan/group of hackers. They're obnoxious assholes who take pride in hacking and ruining the fun for other players, and they gloat about it on their site.
    TSCDan is offline
    Send a message via AIM to TSCDan Send a message via MSN to TSCDan Send a message via Yahoo to TSCDan
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-05-2007 , 09:23   Re: myg0t name banning
    Reply With Quote #4

    Please put a Plugin Description.
    __________________
    I'm a blast from the past!
    ferret is offline
    TSCDan
    Senior Member
    Join Date: Jan 2005
    Location: NY, USA
    Old 07-05-2007 , 09:37   Re: myg0t name banning
    Reply With Quote #5

    Quote:
    Originally Posted by ferret View Post
    Please put a Plugin Description.
    Better? If not, could you clarify?

    EDIT: o.O I just saw what you meant. I know I filled that in when I first posted this...

    Last edited by TSCDan; 07-05-2007 at 09:40.
    TSCDan is offline
    Send a message via AIM to TSCDan Send a message via MSN to TSCDan Send a message via Yahoo to TSCDan
    LIONz
    AlliedModders Donor
    Join Date: Jun 2006
    Location: Latvia
    Old 07-05-2007 , 09:46   Re: myg0t name banning
    Reply With Quote #6

    Quote:
    Originally Posted by TSCDan View Post
    Better? If not, could you clarify?

    EDIT: o.O I just saw what you meant. I know I filled that in when I first posted this...
    this is for Insurgency mod?
    __________________



    LIONz is offline
    TSCDan
    Senior Member
    Join Date: Jan 2005
    Location: NY, USA
    Old 07-05-2007 , 09:50   Re: myg0t name banning
    Reply With Quote #7

    Quote:
    Originally Posted by LIONz View Post
    this is for Insurgency mod?
    I made this for CSS, and I'm not really familiar with Insurgency mod, but I suppose if sourcemod were compatible, this would also be compatible..
    TSCDan is offline
    Send a message via AIM to TSCDan Send a message via MSN to TSCDan Send a message via Yahoo to TSCDan
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-05-2007 , 10:23   Re: myg0t name banning
    Reply With Quote #8

    Suggestion:

    Why make this for myg0t only? I suggest ban based on a list of names. Make a file in addons/sourcemod/configs/banned_names.ini

    Read the list in on map change, and ban people who match it. That would be much more useful. Just remember, don't code "addons/sourcemod", use SM_PATH.
    __________________
    I'm a blast from the past!
    ferret is offline
    TSCDan
    Senior Member
    Join Date: Jan 2005
    Location: NY, USA
    Old 07-05-2007 , 10:40   Re: myg0t name banning
    Reply With Quote #9

    I 'spose I could do so, I was thinking about the idea as I was uploading this one. I guess that will be the next project (once I get some free time at work). Btw, I thought we were supposed to use BasePath()? (I remember reading that somewhere)
    TSCDan is offline
    Send a message via AIM to TSCDan Send a message via MSN to TSCDan Send a message via Yahoo to TSCDan
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 07-05-2007 , 10:42   Re: myg0t name banning
    Reply With Quote #10

    Well yeah, that's what I mean. SM_PATH is the first parameter in BuildPath().
    __________________
    I'm a blast from the past!
    ferret is offline
    Reply


    Thread Tools
    Display Modes

    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 11:05.


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