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

[CS:S] Friendly Fire Announcer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Plugin ID:
2559
Plugin Version:
1.0.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Announces to admins when friendly fire incidents occur
    Old 09-12-2011 , 21:15   [CS:S] Friendly Fire Announcer
    Reply With Quote #1

    I tried searching for a FF announcer, but couldn't find one for CSS. I found this one for L4D and used it as a model - [L4D] Exact FF Damage Announcer (1.4)

    This plugin will announce to admins Friendly Fire that happens on the team they're not on. Normally, you can only see FF on the team you're on, and when people complain about someone team attacking, you wish you could have seen the message(s).

    There is one cvar, you can set this plugin to always notify admins on all FF incidents that occur on the opposite team they're on, or set it to only notify admins of all FF incidents that occur on the opposite team if there is no admin on that team.

    sm_cssffannounce_notify 1/0 - 0 means only if there is no admin on the other team

    I hope you find it useful, and for those more expierenced coders, if you gander at it and notice crap that should be a different way, please let me know - I'm always learning something and eager for the critism.

    And if I there is a valve cvar that will allow people to see opposite team's FF incidents, then I made this plugin for nothing

    Anyways, you won't get spammed for every single team attack in your chat box. You will only get one message per second if the attacker keeps attacking after 1 second. Your console will have a log of ALL team attacks, your team and the opposite team.

    Here's an example of the console output:
    Code:
    [Josh] attacked [Grant] - [damage: 17] - [armor: 3] - [weapon: sg550]
    [Irving] attacked [Shawn] - [damage: 1] - [armor: 0] - [weapon: hegrenade]
    [Irving] attacked [Reed] - [damage: 31] - [armor: 5] - [weapon: hegrenade]
    [Irving] attacked [Orin] - [damage: 24] - [armor: 4] - [weapon: hegrenade]
    [Irving] attacked [Ted] - [damage: 20] - [armor: 0] - [weapon: hegrenade]
    [Irving] attacked [Erik] - [damage: 58] - [armor: 10] - [weapon: hegrenade]
    [Irving] attacked [Pat] - [damage: 5] - [armor: 1] - [weapon: hegrenade]
    [Josh] attacked [Greg] - [damage: 70] - [armor: 13] - [weapon: sg550]
    Example of what is output in chat:
    -ADMIN NOTIFY- [Gregg] attacked a teammate, check your console for details

    CHANGE LOG:
    Version 1.0.0
    - Initial Release

    Version 1.0.1
    - Fixed Native "KillTimer" reported: Invalid timer handle
    Attached Files
    File Type: sp Get Plugin or Get Source (CSS_FF_Announcer.sp - 1409 views - 6.4 KB)

    Last edited by TnTSCS; 09-16-2011 at 02:28. Reason: update to 1.0.1 to fix timer error
    TnTSCS is offline
     


    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 07:11.


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