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

[L4D] Votekick Autoban 1.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author
n0limit
Senior Member
Join Date: May 2009
Plugin ID:
914
Plugin Version:
1.3
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bans any player who is vote kicked for a configurable amount of time
    Old 05-29-2009 , 12:37   [L4D] Votekick Autoban 1.3
    Reply With Quote #1

    Description
    I run a public server and often griefers will be vote kicked and instantly return to continue griefing. This simple plugin solves this issue by automatically banning any player who is vote kicked for a short amount of time (by default, 5 minutes).

    If there is demand, it could increase by powers of 2 each time the person is banned and returns.

    Changelog
    1.3 - Fixed error causing subsequent votekicks to not show name correctly.
    1.2 - Added names of the players who vote kicked for auditing.
    1.1 - Added sm_autoban_duration cvar and converted banning method to SourceBans compatible command.
    1.0 - Initial version

    CVARS
    sm_autoban_duration - sets the amount of time the person is banned in minutes. 0 for permanent.

    Thanks to Downtown1, I used a few snippets from his Ready-Up plugin.
    Attached Files
    File Type: sp Get Plugin or Get Source (votekickautoban.sp - 4431 views - 3.3 KB)

    Last edited by n0limit; 06-05-2009 at 08:12. Reason: Updated to 1.3
    n0limit is offline
    MikesTooLz
    Member
    Join Date: May 2009
    Old 05-29-2009 , 13:07   Re: [L4D] Votekick Autoban
    Reply With Quote #2

    Great plugin.

    Will it work with SourceBans? so the bans get logged to my website and users can contest the bans to be unbanned.
    MikesTooLz is offline
    n0limit
    Senior Member
    Join Date: May 2009
    Old 05-29-2009 , 14:56   Re: [L4D] Votekick Autoban
    Reply With Quote #3

    I could probably integrate sourcebans into the plugin, but would it really be needed? If you kept the default time (which is 5 minutes), then by the time the user went to contest his ban it'd already be expired. If you want a longer ban, then it'd probably make sense to use one of the more extended voting plugins and issuing a voteban.
    Did you just want it so the user knows why he was banned?

    Last edited by n0limit; 05-29-2009 at 15:09.
    n0limit is offline
    MikesTooLz
    Member
    Join Date: May 2009
    Old 05-29-2009 , 16:57   Re: [L4D] Votekick Autoban
    Reply With Quote #4

    No I was planning on making it perm ban on a votekick.

    with the ban going through sourceban the ban gets logged on the servers website where users can contest the ban and admins can remove the ban.

    Since there banned via sourceban when they try to rejoin it tells them they are banned and gives a link to the website were they can contest the ban.


    This is how sourcebans get called in the console:
    sm_ban <#userid|name> <minutes|0> [reason]

    Last edited by MikesTooLz; 05-29-2009 at 17:02.
    MikesTooLz is offline
    n0limit
    Senior Member
    Join Date: May 2009
    Old 05-29-2009 , 20:03   Re: [L4D] Votekick Autoban
    Reply With Quote #5

    Ah, okay. I'll implement that tomorrow.
    n0limit is offline
    n0limit
    Senior Member
    Join Date: May 2009
    Old 05-30-2009 , 10:33   Re: [L4D] Votekick Autoban
    Reply With Quote #6

    MikesToolz:
    Modified to work with SourceBans.

    Code:
    [SM] ADMIN: Banned player "n0limit" for 5 minutes (reason: "AutoBan: banned for being votekicked").
    I also made the cvar sm_autoban_duration so you can set it to 0 for permanent bans.
    Let me know if you run into any troubles.
    n0limit is offline
    MikesTooLz
    Member
    Join Date: May 2009
    Old 05-30-2009 , 11:12   Re: [L4D] Votekick Autoban
    Reply With Quote #7

    Awsome, thanks alot.
    Im not sure if everyone else uses sourcebans. You may want to comment out the severcommand line and have the normal ban as the default for the one thats posted on here.



    ill go test it out right now and let you know how it goes.
    MikesTooLz is offline
    MikesTooLz
    Member
    Join Date: May 2009
    Old 05-30-2009 , 11:54   Re: [L4D] Votekick Autoban
    Reply With Quote #8

    works like a charm

    One last question, is it posable to include the names of the players who voted to kick the person in the reason message? For example...

    AutoBan: banned for being votekicked by Bill, Louise, zoey, Mike.


    this would make reviewing an unban request easy since if I see they were banned by one of my freind or people I can ask them about it.

    Last edited by MikesTooLz; 05-30-2009 at 11:59.
    MikesTooLz is offline
    n0limit
    Senior Member
    Join Date: May 2009
    Old 05-30-2009 , 19:13   Re: [L4D] Votekick Autoban
    Reply With Quote #9

    Quote:
    Originally Posted by MikesTooLz View Post
    Awsome, thanks alot.
    Im not sure if everyone else uses sourcebans.
    It's okay, the sm_ban command is part of the sourcemod package. You don't need SourceBans to use it.


    Quote:
    Originally Posted by MikesTooLz
    One last question, is it posable to include the names of the players who voted to kick the person in the reason message? For example...

    AutoBan: banned for being votekicked by Bill, Louise, zoey, Mike.


    this would make reviewing an unban request easy since if I see they were banned by one of my freind or people I can ask them about it.
    That shouldn't be a problem, I'll try to get to it tomorrow.
    n0limit is offline
    n0limit
    Senior Member
    Join Date: May 2009
    Old 06-02-2009 , 21:09   Re: [L4D] Votekick Autoban 1.2
    Reply With Quote #10

    Sorry it took a little longer, I've had a busy week.
    I've updated it to 1.2 which features the names of those who voted to kick.
    Here's an example from my server:
    Code:
     [SM] Console: Banned player "((((Jas))))" for 5 minutes (reason: "AutoBan: Votekicked by n0limit, JaPimp and [email protected]]C3r.").
    n0limit 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 20:37.


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