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

[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 - 428 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, 312 views)
    Dreamy is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 03-13-2012 , 02:41   Re: [ANY] kBans
    Reply With Quote #8

    Quote:
    Originally Posted by Der Moppel View Post
    Just slayed 20 bots in a Row twice, nothing happened
    Dam, didn't remember slay force suicide... it returns player own index.

    What I mean was, if most players die some mini game map by explosion or similiar.
    Where attacker #userid return client index 0 = "world".
    Carry on.
    Bacardi is offline
    Dreamy
    SourceMod Donor
    Join Date: Mar 2012
    Old 03-13-2012 , 06:01   Re: [ANY] kBans
    Reply With Quote #9

    Quote:
    Originally Posted by Der Moppel View Post
    Compiled it now in the right Place and it does not work, you wont get banned
    just tested it myself.. worked without any problem.. sure u installed sourcebans right?

    Quote:
    Originally Posted by Bacardi View Post
    What I mean was, if most players die some mini game map by explosion or similiar.
    Where attacker #userid return client index 0 = "world".
    guess it will be hard banning the world xD but ure right, fixed it!
    Dreamy is offline
    Der Moppel
    Member
    Join Date: Jan 2012
    Old 03-13-2012 , 06:39   Re: [ANY] kBans
    Reply With Quote #10

    Well i switched time and kill Amount...gues its pretty hard if you need 60 Kills in 10 Seconds, my bad.

    Tested it, but the Ban was still not shown on the Sourcebanssite and Sourcebans is installed right and working fine on our Server, anyway just banned a Bot on that Server to be sure

    The Bans are written in the banned_user.cfg, Sourcebans doesnt write them in there, so you maybe used the regular Sourcemod Admintool?
    Der Moppel is offline
    Reply



    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 13:59.


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