Raised This Month: $154 Target: $400
 38% 

Name Checker 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silent_Water
Member
Join Date: Sep 2008
Plugin ID:
712
Plugin Version:
1.3
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    120 
    Plugin Description:
    checks the players names and the changes
    Old 01-08-2009 , 04:44   Name Checker 1.5
    Reply With Quote #1

    Name Checker 1.5

    This plugins checks the players name on connect and on change. It kicks/bans a player, that changes his name too often or does some hacking with his name.

    I've copied some ideas and code snippets from Kigen's Anti-Cheat. Thanks to him for that.

    This Plugin is tested on DOD:S but should work on all other source games and mods too. Please reply if you could verify this.


    Installation

    Just compile the source and/or copy the compiled .smx to your sourcemod plugins folder.


    Variables

    sm_name_checker
    Just shows the Name Checker version

    sm_name_change_count
    Blocks name changes more than x times per map, default: 4

    sm_name_copy_size
    The first x characters of the name must be unique, default: 16

    sm_name_copy_diff
    How many characters must be different at least (0 = disable), default: 2

    sm_name_ban_time
    How long should be banned - in minutes (0 = permanent), default: 5

    sm_name_special_chars
    How many special characters (not readable) are allowed, default: 16

    sm_name_multi_byte
    How many multi-byte characters (arabian, chinese, ...) are allowed, default: 31

    sm_name_change_action

    What action is to be done if a player changes his name to often? (deny|kick|ban), default: kick

    sm_name_invalid_action
    What action is to be done if a player has an invalid name? (deny|kick|ban), default: kick

    sm_name_min_size

    Minimum required length of a name, default: 1

    sm_name_max_size
    Maximum allowed length of a name, default: 63

    sm_name_tell_details
    Tell the player the detailled reason?, default: 1


    Files

    configs/badnames.txt
    This file may contain a list of bad names or parts (one per line, may contain any character, even multibyte).

    This file is created if not found. Default content is unnamed. Comments are NOT allowed and will be seen as names, empty lines will be ignored. Spaces before and after a name will be ignored. The number of entries is not limited - but keep it small

    Be sure to block the right names! Check is NOT case sensitve and it is searched WITHIN a name. So a bad name like sex would block a name like PlaysExtremelyBad too.

    Example:
    unnamed
    unconnected


    cfg/sourcmod/namechecker.cfg
    This file will be generated if it does not exist. It contains all configuration options.


    Version history

    1.5 (07/20/2009):
    - a lot of changes
    - added detailled output of kick reason
    - added "deny" action (thanks to Roachy for the idea)
    - added automated generation of a config file
    - bug fixes
    1.4 (04/12/2009):
    - some minor changes - I did not publish
    1.3 (01/09/2009):
    - added bad name file (see "Files" above)
    - added variable for minimum required name length
    - added variable for max allowed name length
    1.2 (01/08/2009):
    - First stable public release
    - Now uses sourcebans (if available)
    - fixed an issue with names of length 1
    Attached Files
    File Type: sp Get Plugin or Get Source (namechecker.sp - 2281 views - 15.9 KB)

    Last edited by Silent_Water; 07-20-2009 at 16:19. Reason: new version 1.5
    Silent_Water is offline
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 01-08-2009 , 09:58   Re: Name Checker 1.2
    Reply With Quote #2

    What about 'unconnected' players? Can you add a check when players use: setinfo name ""?
    __________________
    shustas is offline
    Silent_Water
    Member
    Join Date: Sep 2008
    Old 01-08-2009 , 10:16   Re: Name Checker 1.2
    Reply With Quote #3

    Quote:
    Originally Posted by shustas View Post
    What about 'unconnected' players? Can you add a check when players use: setinfo name ""?
    Yes I will do this in my next releases. Maybe I add a bad-name-list because the name of the player is "unnamed" when he changes to "". A player with an empty name like " " or " . " or "( . ) ( . )" is already recognized
    Silent_Water is offline
    {7~11} TROLL
    Senior Member
    Join Date: Oct 2008
    Location: Atlanta,Georgia
    Old 01-08-2009 , 19:19   Re: Name Checker 1.2
    Reply With Quote #4

    good idea will be useful when people connect with racist name
    __________________
    {7~11} TROLL is offline
    Silent_Water
    Member
    Join Date: Sep 2008
    Old 01-09-2009 , 18:44   Re: Name Checker 1.2
    Reply With Quote #5

    Quote:
    Originally Posted by {7~11} TROLL View Post
    good idea will be useful when people connect with racist name
    *** UPDATED ***

    I've added in v1.3 some new functions including a simple bad name list.
    Silent_Water is offline
    Drummerx
    Junior Member
    Join Date: Jul 2008
    Old 01-11-2009 , 23:33   Re: Name Checker 1.3
    Reply With Quote #6

    Question: Does it check for the whole name at once, or any part of the name?

    say someone joins with the name "Horse Cock Lover" and "cock" is in the bad name list, will it pick it up?

    Same goes if it's one long word "HorseCockLover".
    Drummerx is offline
    Silent_Water
    Member
    Join Date: Sep 2008
    Old 01-12-2009 , 02:41   Re: Name Checker 1.3
    Reply With Quote #7

    Quote:
    Originally Posted by Drummerx View Post
    Question: Does it check for the whole name at once, or any part of the name?

    say someone joins with the name "Horse Cock Lover" and "cock" is in the bad name list, will it pick it up?

    Same goes if it's one long word "HorseCockLover".
    Please see the the red notice above: Yes, it checks parts of the name. "Horse Cock Lover" will be kicked. But "Cocktail Lover" too
    Silent_Water is offline
    Drummerx
    Junior Member
    Join Date: Jul 2008
    Old 01-12-2009 , 07:39   Re: Name Checker 1.3
    Reply With Quote #8

    Great, hope this gets approved.
    Drummerx is offline
    HSFighter
    Veteran Member
    Join Date: Aug 2007
    Location: Flensburg - Germany
    Old 01-12-2009 , 12:31   Re: Name Checker 1.3
    Reply With Quote #9

    Great Plugin

    It will be nice to add admin immunity for "badnames.txt" and optinal for the other rules.
    That makes it posible to protect a Clan-Tag or a nick from admin.

    Greetigs
    __________________



    Sorry for my very bad english
    Greetings HSFighter
    HSFighter is offline
    Send a message via ICQ to HSFighter
    st0rm_r1der
    Member
    Join Date: Feb 2008
    Location: DE
    Old 01-16-2009 , 15:49   Re: Name Checker 1.3
    Reply With Quote #10

    Like this Plugin too,

    but it needs a clan tag check function!
    st0rm_r1der 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 02:39.


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