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

[ZPS] Barricade Killer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
will2tango
Member
Join Date: Nov 2009
Location: England
Plugin ID:
3693
Plugin Version:
1.20
Plugin Category:
Server Management
Plugin Game:
Zombie Panic!
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Notification when a Survivor Kills a Barricade
    Old 06-12-2013 , 08:47   [ZPS] Barricade Killer
    Reply With Quote #1

    This plugin will simultaneously post an Announcement to all Survivors when another Survivor Breaks a Barricade, notify admins with a running total and warn the Survivor who Broke the Barricade Hopefuly this should help Admins deal with griefers.


    CVARs:
    zps_barricadekiller_version - current version
    sm_barricadekiller_enabled - Turns Barricade Killer Off/On
    sm_barricadekiller_reset - When to reset Running Totals: 0=Never, 1=Map End, 2=New Round

    Comments:
    There are some situations most players would consider breaking a barricade to be OK, I usually use the rule of thumb if its to save a survivors life its acceptable, that is why this plugin doesnt punish players who break barricades, it is just a tool to help Admins police their server.

    For those sinister admins who would like to punish barricade murderers see JonnyBoys Post below: BarricadeKiller with Punishment


    Files:
    barricadekiller.sp - goes in your Scripting folder.
    barricadekiller.smx - goes in your Plugins folder.
    barricadekiller.phrases.txt - goes in your Translations folder.

    Change Log:
    1.00 Release
    1.10 Totals for Admin
    1.20 Reset Options
    Attached Files
    File Type: sp Get Plugin or Get Source (barricadekiller.sp - 713 views - 3.2 KB)
    File Type: txt barricadekiller.phrases.txt (683 Bytes, 288 views)
    File Type: zip barricadekiller.zip (6.4 KB, 241 views)
    __________________

    Last edited by will2tango; 02-18-2014 at 10:15.
    will2tango is offline
    xerox8521
    Senior Member
    Join Date: Sep 2011
    Old 06-12-2013 , 16:21   Re: [ZPS] Barricade Killer
    Reply With Quote #2

    Nice, i've added German translation for it
    Attached Files
    File Type: txt barricadekiller.phrases.txt (683 Bytes, 226 views)
    xerox8521 is offline
    will2tango
    Member
    Join Date: Nov 2009
    Location: England
    Old 06-13-2013 , 07:01   Re: [ZPS] Barricade Killer
    Reply With Quote #3

    Wey thanks very much Xerox! I wasnt sure how to do other languages
    __________________

    Last edited by will2tango; 06-13-2013 at 07:01.
    will2tango is offline
    JonnyBoy0719
    Member
    Join Date: Apr 2012
    Location: Sweden
    Old 02-12-2014 , 14:11   Re: [ZPS] Barricade Killer
    Reply With Quote #4

    This is a very nice plugin. I downloaded it and used it on my own server, but I also changed it a little since I needed a "punishment" for it (to many trolls from the U.S and Russia).

    I've added the following commands:
    Code:
    // Sets the punish mode on ON/OFF
    // 0 = disabled
    // 1 = enabled
    // ----
    // Default: 0
    sm_barricadekiller_punish "0"
    
    // Sets the punishment scale for the Slap
    // Min 1
    // Max 99
    // ----
    // Default: 1
    sm_barricadekiller_punishscale "1"
    And here is the new SP file :p

    Edit: Forgot to include the new translations, sadly its all in English.

    Edit: Modified it again to make it more serious for rule breakers

    On line 130
    Code:
                        if (gPunish == 1)
                        {
                            if (total >= 2)
                            {
                                SlapPlayer(client, gPunishscale+total*2);
                            }
                            else
                            {
                                SlapPlayer(client, gPunishscale);
                            }
                        }
    Attached Files
    File Type: sp Get Plugin or Get Source (barricadekiller.sp - 612 views - 4.4 KB)
    File Type: txt barricadekiller.phrases.txt (1.1 KB, 236 views)
    __________________

    Last edited by JonnyBoy0719; 02-12-2014 at 15:59. Reason: Forgot to include updated translations :v
    JonnyBoy0719 is offline
    Send a message via Skype™ to JonnyBoy0719
    will2tango
    Member
    Join Date: Nov 2009
    Location: England
    Old 02-18-2014 , 10:12   Re: [ZPS] Barricade Killer
    Reply With Quote #5

    Thanks JonnyBoy, glad you enjoyed it enough to have a tinker with it

    I actually had punishment in there originally but I took it out because I could find occasions where I would consider it acceptable to break a barricade, eg a troll has barricaded most of the survivors on the ground floor of the barn in harvest, the only solution would be to jump on the plank to let them up.

    You have a good point I should have at least left it in there as an option. When I come back to tinker with my plugins [when I next get the urge for some ZPS] I'll add your code (with special thanks) in with admin imunity and some kind of warning to survivors on how severe their punishment will be That should do the trick I hope

    In the mean time I will make a note in OP
    __________________
    will2tango is offline
    JonnyBoy0719
    Member
    Join Date: Apr 2012
    Location: Sweden
    Old 02-28-2014 , 08:45   Re: [ZPS] Barricade Killer
    Reply With Quote #6

    heh, that would be good, I have also changed mine a little bit, you could probably use some of its code or make something better. I'm not the best SourcePawn coder, but I tried my best

    Its also using [INC] Colors (1.0.5) for some neat colors

    Note:

    I also added a code that disables the plugin itself if there is no team (the plugin can crash the whole server/game if there is no players on). Dunno how to fix that, so i just made a fail safe if there is no team, the plugin just stops.

    Edit:

    Here is the new commands I've added. (2 of em don't work, since I didn't know how to make em, which is owner and owner_text)
    Code:
    |---------------------------------------|----------------|---------------------------------------------------------------------------------------------|
    |                Command                | DEFAULT VALUE  |                                        DESCRIPTION                                          |
    |---------------------------------------|----------------|---------------------------------------------------------------------------------------------|
    | sm_barricadekiller_punish_sound       |        1       | Enables the punishment sound for the client, 0=disabled, 1=enabled.                         |
    | sm_barricadekiller_punish_scale       |        1       | Set the slap damage, 1=min, 99=max.                                                         |
    | sm_barricadekiller_punish_multiply    |        2       | Set the slap damage multiplier, 1=min, 99=max.                                              |
    | sm_barricadekiller_punish_total       |        5       | How many times they need to break a barricade until punishment takes effect, 1=min, 15=max. |
    | sm_barricadekiller_punish_owner       |        1       | Don't punish the owner, 0=disabled, 1=enabled.                                              |
    | sm_barricadekiller_punish_owner_text  |        1       | Show who planted the barricade (Survivor only), 0=disabled, 1=enabled.                      |
    |---------------------------------------|----------------|---------------------------------------------------------------------------------------------|
    Attached Files
    File Type: sp Get Plugin or Get Source (barricadekiller.sp - 150 views - 9.4 KB)
    __________________

    Last edited by JonnyBoy0719; 02-28-2014 at 09:05. Reason: forgot to display new commands
    JonnyBoy0719 is offline
    Send a message via Skype™ to JonnyBoy0719
    unscarred
    Member
    Join Date: Dec 2009
    Location: cs 1.6
    Old 11-17-2015 , 15:47   Re: [ZPS] Barricade Killer
    Reply With Quote #7

    Hi all
    got errors

    Line 106 attach::SomethingBroke()
    [SM] Native "GetClientTeam" reported: Client index 0 is invalid

    i'm using linux server

    Last edited by unscarred; 11-17-2015 at 15:48.
    unscarred is offline
    JonnyBoy0719
    Member
    Join Date: Apr 2012
    Location: Sweden
    Old 12-09-2015 , 04:25   Re: [ZPS] Barricade Killer
    Reply With Quote #8

    Quote:
    Originally Posted by unscarred View Post
    Hi all
    got errors

    Line 106 attach::SomethingBroke()
    [SM] Native "GetClientTeam" reported: Client index 0 is invalid

    i'm using linux server
    This version of the addon is very old & broken, you can grab the new version over here: https://github.com/jonnyboy0719/ZPS-...-Killer-Redux/

    Sorry for the very late reply tho
    __________________

    Last edited by JonnyBoy0719; 12-09-2015 at 04:25.
    JonnyBoy0719 is offline
    Send a message via Skype™ to JonnyBoy0719
    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 20:45.


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