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

Too Late To Ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Shenton
Junior Member
Join Date: Jul 2009
Location: Paris
Plugin ID:
999
Plugin Version:
1.0.0a
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    29 
    Plugin Description:
    Store players that disconnected recently, allowing you to ban them with a menu.
    Old 07-12-2009 , 00:07   Too Late To Ban
    Reply With Quote #1

    Description

    This plugin store players names and steamids that disconnected recently, allowing you to ban them with a menu even if they are disconnected.

    Usefull for those little <insert insult here> that jump from a cliff and disconnect immediately (l4d players will see what I meen ).

    You can access the menu from the section "Player Commands" in AdminMenu (can be disabled) or by a SM command.

    The plugin use the command "sm_addban" to ban the player, so it work with SM basebans and sourcebans.

    Commands

    sm_tltb - Display a menu with disconnected players (!tltb or /tltb in chat)
    sm_tltb reset - Reset the stored players
    sm_tltb resetmenu - Reset the ban menu options file

    CVars

    tltb_check_reason - Only store a player informations if he disconnected himself, values: <0|1> (Default 0)
    tltb_stored_players - The maximum number of player(s) to store, values: <0 to 20> (Default 7)
    tltb_players_order - Display the last disconnected players first in the menu, values: <0|1> (Default 1)
    tltb_use_ban_reason - Display the ban reasons menu, values: <0|1> (Default 1)
    tltb_use_admin_menu - Add a "Ban disconnected player" menu in players commands section of AdminMenu, values: <0|1> (Default 1)

    Installation

    Put "TooLateToBan.smx" in your "<mod_dir>/addons/sourcemod/plugins/" directory.

    On first load the plugin will create a config file located here: "<mod_dir>/cfg/sourcemod/too_late_to_ban.cfg"
    And a file containing ban time and ban reasons displayed by the menu and used to ban the player, located here: "<mod_dir>/addons/sourcemod/data/tltb_ban_options.txt"

    tltb_ban_options.txt sample
    Code:
    "TooLateToBan"
    {
        "BanTime"
        {
            "Permanent" // This is displayed in the menu
            {
                "time"        "0" // This is used to ban the player
            }
        }
        "BanReason"
        {
            "Abusive"
            {
                "reason"        "Abusive"
            }
        }
    }


    Changelog

    1.0.0 - 12/07/09
    * Initial release

    1.0.0a - 14/07/09
    * Added condition to check if player is already strored
    * Added public cvar tltb_version

    Notes


    This is my first SM plugin, so it's not bug free I think or optimized, feel free to tell me what i'm doing wrong and to use this thread if you find bug(s).

    English is not my language, sorry if I spell it wrong.

    So, have fun and ban those *bip* that ruin your game and disconnect.
    Attached Files
    File Type: sp Get Plugin or Get Source (TooLateToBan.sp - 8535 views - 27.5 KB)

    Last edited by Shenton; 07-13-2009 at 23:28. Reason: Bug fix
    Shenton is offline
    retsam
    Veteran Member
    Join Date: Aug 2008
    Location: so-cal
    Old 07-12-2009 , 02:54   Re: Too Late To Ban
    Reply With Quote #2

    Nice work and idea. How does it store them? (I havnt looked at the plugin)
    retsam is offline
    Shenton
    Junior Member
    Join Date: Jul 2009
    Location: Paris
    Old 07-12-2009 , 03:19   Re: Too Late To Ban
    Reply With Quote #3

    It store players informations in arrays.
    Shenton is offline
    Sexual Harassment Panda
    Veteran Member
    Join Date: Dec 2008
    Location: San Diego, CA
    Old 07-12-2009 , 03:31   Re: Too Late To Ban
    Reply With Quote #4

    oh wow great plugin. I was using lastx for a while, but it didn't go the extra step to make something like htis. Great idea.
    __________________
    Sexual Harassment Panda is offline
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 07-12-2009 , 03:54   Re: Too Late To Ban
    Reply With Quote #5

    Looks like a handy little plugin for a few of our servers. Thanks
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    OziOn
    Senior Member
    Join Date: Jan 2008
    Old 07-12-2009 , 08:04   Re: Too Late To Ban
    Reply With Quote #6

    Excellent plugin. Thanks alot for making this.
    OziOn is offline
    ShambleS
    Senior Member
    Join Date: Jul 2009
    Old 07-12-2009 , 10:07   Re: Too Late To Ban
    Reply With Quote #7

    YAY... A nother excelent plugin that sounds like 100% what i need.

    i think i am 1-2 plugin(s) away from having a perfect server now..

    Thank you
    ShambleS is offline
    Shenton
    Junior Member
    Join Date: Jul 2009
    Location: Paris
    Old 07-12-2009 , 16:08   Re: Too Late To Ban
    Reply With Quote #8

    Thanks for your comments, hope it helps.
    __________________
    Shenton is offline
    Antithasys
    Moderator
    Join Date: Apr 2008
    Old 07-13-2009 , 17:38   Re: Too Late To Ban
    Reply With Quote #9

    Please update your description to include the public cvar in your code. Once done your plugin will be approved.
    __________________
    [my plugins]

    When you think about asking a question... consider what have you tried?
    Antithasys is offline
    Icettiflow
    Senior Member
    Join Date: Jan 2009
    Old 07-13-2009 , 17:49   Re: Too Late To Ban
    Reply With Quote #10

    I'm getting double names in the ban list. Such as:

    1.) Player 1
    2.) Player 1
    3.) Player 2
    4.) Player 2
    5.) Player 3
    6.) Player 3
    7.) Player 4
    Icettiflow 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:45.


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