Raised This Month: $359 Target: $400
 89%   Almost there!

[ANY] kBans


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dreamy
SourceMod Donor
Join Date: Mar 2012
Plugin ID:
2836
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Bans a player if he does [n] amount of kills in [n] seconds.
    Old 03-12-2012 , 10:35   [ANY] kBans
    Reply With Quote #1

    Was a simple yet brilliant idea from "Der_Moppel". Tell me if you want anything else implemented ;P

    Cvars:
    kBans_kills = 12 - "Amount of kills players are not allowed to do in [n] seconds"
    kBans_interval = 40 - "In which interval players are not allowed to do [n] kills"
    kBans_bantime = 0 - "0 = Permban, >0 = Time in minutes"
    kBans_reason = "[kBans]: Suspicion of Cheating" - "Reason to be logged in your database"
    kBans_bots = 0 - "1/0 = Bots are treated/not treated as human players"
    Attached Files
    File Type: sp Get Plugin or Get Source (kBans.sp - 372 views - 3.1 KB)

    Last edited by Dreamy; 03-15-2012 at 13:30.
    Dreamy is offline
    Der Moppel
    Member
    Join Date: Jan 2012
    Old 03-12-2012 , 16:37   Re: [ANY] kBans
    Reply With Quote #2

    I just tested it against Bots and it works fine, great work.

    - It would be great if Sourcebans could be used for it and an own Banmessage like "checkt www.yourassgotbusted.com" would be also nice.
    But i gues the Sourcebanmessage automaticly appears, when its beeing used.

    Regards : Moppel
    Der Moppel is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 03-12-2012 , 17:11   Re: [ANY] kBans
    Reply With Quote #3

    Code:
    new kCount[MAXPLAYERS];
    new Handle:kTimers[MAXPLAYERS];
    I believe you need MAXPLAYERS + 1, since there is The world (0), the possible SourceTV (1) and 64 players (MAXPLAYERS = 65).

    Also
    Quote:
    Bans a player if he does [n] amount of kills in [n] seconds
    I believe you mean "Bans a player if he does [n] amount of kills in [m] seconds"

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Dreamy
    SourceMod Donor
    Join Date: Mar 2012
    Old 03-12-2012 , 17:37   Re: [ANY] kBans
    Reply With Quote #4

    Quote:
    Originally Posted by RedSword View Post
    Code:
    new kCount[MAXPLAYERS];
    new Handle:kTimers[MAXPLAYERS];
    I believe you need MAXPLAYERS + 1, since there is The world (0), the possible SourceTV (1) and 64 players (MAXPLAYERS = 65).
    Yep sry, was in a hurry when I wrote that code, since I had to catch my train ;P

    Quote:
    Originally Posted by RedSword View Post
    I believe you mean "Bans a player if he does [n] amount of kills in [m] seconds"
    nope "n" = Natural number = the user is not supposed to put a negative number and no float at all in there.

    Anyways fixed it (on the train >_<), removed the timers, added the cvar and sourcebans support!

    Last edited by Dreamy; 03-12-2012 at 17:50.
    Dreamy is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 03-12-2012 , 18:01   Re: [ANY] kBans
    Reply With Quote #5

    What would happen when admin deside slay all players... ?
    Bacardi is offline
    Der Moppel
    Member
    Join Date: Jan 2012
    Old 03-12-2012 , 18:12   Re: [ANY] kBans
    Reply With Quote #6

    Just slayed 20 bots in a Row twice, nothing happened

    Cant compile the Plugin to test it, tried in manually on the Sourcemodsite and got this Error :

    Quote:
    SourcePawn Compiler 1.4.0 Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC /home/groups/sourcemod/upload_tmp/php2IbIs0.sp(5) : fatal error 120: cannot read from file: "sourcebans" Compilation aborted. 1 Error.
    Der Moppel is offline
    Dreamy
    SourceMod Donor
    Join Date: Mar 2012
    Old 03-12-2012 , 18:17   Re: [ANY] kBans
    Reply With Quote #7

    ye slay = player suicide with fancy effects..

    @Der_Moppel: to compile you have to add sourcebans latest .inc file to your scripting/includes folder.
    Attached Files
    File Type: inc sourcebans.inc (900 Bytes, 256 views)
    Dreamy is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 03-12-2012 , 18:43   Re: [ANY] kBans
    Reply With Quote #8

    You may want an HEGrenade exception.

    I don't really see a hacker killing everyone with that. Plus nade killing 6 people happens.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    Dreamy
    SourceMod Donor
    Join Date: Mar 2012
    Old 03-12-2012 , 19:04   Re: [ANY] kBans
    Reply With Quote #9

    Quote:
    Originally Posted by RedSword View Post
    You may want an HEGrenade exception.

    I don't really see a hacker killing everyone with that. Plus nade killing 6 people happens.
    awhh, didn think about that ty!
    - added

    Last edited by Dreamy; 03-12-2012 at 19:04.
    Dreamy is offline
    Der Moppel
    Member
    Join Date: Jan 2012
    Old 03-12-2012 , 21:23   Re: [ANY] kBans
    Reply With Quote #10

    Compiled it now in the right Place and it does not work, you wont get banned

    Last edited by Der Moppel; 03-12-2012 at 21:24.
    Der Moppel 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:56.


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