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

[ANY] Ban Disconnected Players [UPDATED 1/3/17]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
headline
SourceMod Moderator
Join Date: Mar 2015
Plugin ID:
4864
Plugin Version:
2.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin which allows you to ban people who have recently disconnected
    Unapprover:
    Reason for Unapproving:
    not maintained by author
    Old 10-23-2015 , 22:23   [ANY] Ban Disconnected Players [UPDATED 1/3/17]
    Reply With Quote #1

    [ANY] Ban Disconnected Players


    Introduction:
    I rewrote this plugin due to the creator of the old one mad_hamster no longer supporting it. This plugin shares the same idea as the old one, but is now supported and has bug fixes. I also added a command called sm_listdisconnected to see the last 10 people who left your server printed to your console!

    Also, with this plugin there is no limit to the amount of players that is saved due to it supporting ADT arrays. As long as your server doesn't restart often, you can go back pretty far. Refer to the screenshot below to see me scrolling through ~200 disconnected players.

    Instructions:
    • Install the plugin by moving the .smx file into your /plugins/ folder
    • Load the plugin
    • Type sm_admin or sm_bandisconnected
    • Click on the "Ban disconnected player" option and view all disconnected clients
    • Enjoy!

    ConVars:
    • hl_bandisconnected_max <value> (A limit for the amount of disconnected players stored, default value is 100)

    SourceMod Version 1.7+ Is Required!
    Attached Files
    File Type: sp Get Plugin or Get Source (hl_bandisconnected.sp - 1571 views - 12.3 KB)

    Last edited by headline; 03-11-2020 at 17:27.
    headline is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 10-23-2015 , 22:24   Re: [ANY] Ban Disconnected Players
    Reply With Quote #2

    Changelog
    PHP Code:
    /* Changeslog
        1.0
            - Initial Release
        1.1
            - Fixed Invalid Client Issue
        1.2
            - Fixed reason issue where it'd fail sm_addban
        1.3
            - Implemented asherkin's suggestion
        1.4
            - Fixed list order issue
        1.5
            - Created ConVar to limit array size
            - Cleaned up lots of weird problems
            - Now using more OO methods
            - Fixed where newer Steam D's were being
            truncated.
        2.0
            - Fixed issue where player's weren't getting banned
            - Added chat message when there were no disconnected players
        2.0.1
            - Added shortcut to bandisconnected menu
    */ 

    Last edited by headline; 03-11-2020 at 17:29.
    headline is offline
    Tiger50
    Member
    Join Date: Feb 2010
    Location: Southampton UK
    Old 10-24-2015 , 02:48   Re: [ANY] Ban Disconnected Players
    Reply With Quote #3

    @ Headline22

    Thanks for the plugin

    Ive added this to 5 of my linux l4d2 servers and will report back today when I have tested it

    Again many thanks
    Tiger50 is offline
    Send a message via Yahoo to Tiger50
    Tiger50
    Member
    Join Date: Feb 2010
    Location: Southampton UK
    Old 10-24-2015 , 05:47   Re: [ANY] Ban Disconnected Players
    Reply With Quote #4

    @ Headline22

    I tried the plugin and could not get it to work
    When I tried to manually load the plugin it says cannot load in multi-player game (I was in survival game)
    When I typed sm_admin I just get the normal admin menu
    When I type sm_bandisconnected nothing
    Tiger50 is offline
    Send a message via Yahoo to Tiger50
    AeroAcrobat
    AlliedModders Donor
    Join Date: Apr 2011
    Location: lives in a circus
    Old 10-24-2015 , 06:11   Re: [ANY] Ban Disconnected Players
    Reply With Quote #5

    Very nice!
    I'm still using "Too Late To Ban" (1.0.0a) by Shenton. AFAIK I haven't encountered any problems with it.
    Looking forward to try your updated version out.
    __________________
    AeroAcrobat is offline
    GoRiLliAz
    Senior Member
    Join Date: May 2013
    Old 10-24-2015 , 06:49   Re: [ANY] Ban Disconnected Players
    Reply With Quote #6

    Hi I have some erreur compil with git 5716

    Quote:
    //// hl_bandisconnected.sp
    //
    // hl_bandisconnected.sp(26) : warning 234: symbol "FCVAR_PLUGIN" is marked as d
    eprecated: No logic using this flag ever existed in a released game. It only eve
    r appeared in the first hl2sdk.
    //
    //
    // hl_bandisconnected.sp(142) : error 180: function return type differs from pro
    totype. expected 'void', but got 'int'
    //
    // 1 Error.
    //
    // Compilation Time: 0,2 sec
    GoRiLliAz is offline
    Tiger50
    Member
    Join Date: Feb 2010
    Location: Southampton UK
    Old 10-24-2015 , 11:04   Re: [ANY] Ban Disconnected Players
    Reply With Quote #7

    I just tried Too late to ban (https://forums.alliedmods.net/showth...70222?p=870222) on my linux servers comes back with the same error

    sm_addban failed

    Tiger50 is offline
    Send a message via Yahoo to Tiger50
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 10-24-2015 , 14:17   Re: [ANY] Ban Disconnected Players
    Reply With Quote #8

    Quote:
    Originally Posted by GoRiLliAz View Post
    Hi I have some erreur compil with git 5716
    Okay, I fixed all of those errors and it now compiles on forums. Let me know if that fixes any issues for you guys
    headline is offline
    GoRiLliAz
    Senior Member
    Join Date: May 2013
    Old 10-24-2015 , 19:59   Re: [ANY] Ban Disconnected Players
    Reply With Quote #9

    It's good now its compiles thx


    I test tomorrow on my server
    GoRiLliAz is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 10-24-2015 , 20:00   Re: [ANY] Ban Disconnected Players
    Reply With Quote #10

    Quote:
    Originally Posted by GoRiLliAz View Post
    It's good now its compiles thx


    I test tomorrow on my server
    Great! Let me know how it goes!
    headline 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 01:21.


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