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

[CS:S] Spawn Friendly Fire Punishment


Post New Thread Reply   
 
Thread Tools Display Modes
Author
CUatTHEFINISH
Member
Join Date: Apr 2009
Plugin ID:
2826
Plugin Version:
1.0.2
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Slays a client in spawn for friendly fire (ff) if they attack a teammate in x seconds after round freeze end. Can also restore health lost.
    Old 03-05-2012 , 16:25   [CS:S] Spawn Friendly Fire Punishment
    Reply With Quote #1

    I run a CS:S server with friendly fire on and sometimes we get people who intentionally shoot other players in spawn as an act of revenge or just to troll. I created this plugin to combat it (I couldn't find a plugin that did the same thing, but maybe I'm not looking hard enough).

    The time you define for spawnff_time is the amount of time after the freeze round ends that the plugin will check for players to punish. During this time any players who commit friendly fire will be slain. This plugin allows for the option to restore the damage done to the attacker.

    Features:
    • Slay a client who team attacks after round freeze ends
    • Announce that the client has been slain for spawn friendly fire
    • Restore health to the victim of the attacker
    • Announce that the victim's health has been restored

    Plugin cvars:
    spawnff_time <5.00> - How many seconds to allow punishment for spawn ff
    spawnff_restore <0, 1> - Restore health to the victim (0 = off, 1 = on)
    spawnff_announce_slay <0, 1> - Announce the slay punishment (0 = off, 1 = on)
    spawnff_announce_restore <0, 1> - Announce the health restore (0 = off, 1 = on)

    Change Log
    • Version 1.0.2
      • Fixed client index 0 bug
    • Version 1.0.1
      • Added explosion sound and sprite effect (ala firebomb of funcommands) when client is slain
      • Fixed slay message spam when shot by a shotgun
    • Version 1.0.0
      • Initial Public Release

    Known Issues:
    • Shotgun blasts may cause multiple health restore messages. This is due to the multiple player_hurt events that trigger (trying to figure out the best way to solve this).

    Additional Info:
    This is my second plugin, and I've been testing it out on my server. It seems to be running alright and not causing any problems. However, that doesn't mean I haven't missed any bugs. Feel free to give it a whirl and give me some feedback.

    Slaying may seem like a harsh punishment to some for any FF within x amount of seconds of the round starting. However, it's proven to be quite effective in handling rouge pubbies who mistreat friendly fire after spawning. It's prevented a few incidents on our server already, and has given admins a chance to kick the offender without him ruining a round.
    Attached Files
    File Type: sp Get Plugin or Get Source (spawnff_punish.sp - 1046 views - 5.5 KB)
    __________________

    Last edited by CUatTHEFINISH; 03-05-2012 at 16:34.
    CUatTHEFINISH is offline
    AlfredSpain
    Senior Member
    Join Date: Oct 2010
    Old 06-03-2013 , 01:12   Re: [CS:S] Spawn Friendly Fire Punishment
    Reply With Quote #2

    Csgo works fine
    __________________

    Last edited by AlfredSpain; 06-03-2013 at 01:12.
    AlfredSpain 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 10:50.


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