Raised This Month: $404 Target: $400
 101% 

[CS:S] Friendly Fire Announcer


Post New Thread Reply   
 
Thread Tools Display Modes
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:
     
    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 - 668 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
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 09-13-2011 , 01:14   Re: [CS:S} Friendly Fire Announcer
    Reply With Quote #2

    Good Job TnT
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-13-2011 , 18:26   Re: [CS:S] Friendly Fire Announcer
    Reply With Quote #3

    I was wrong about there not being a plugin that does this... Bacardi posted on (along with a different way to handle this)...

    Anyways, I think his plugin deserves to be mentioned - it's almost like mine, but his will spam the chat for every team attack where mine only prints once every second if the team attack continues... mine will spam the log though

    http://forums.alliedmods.net/showthread.php?t=161597

    I'm going to look at his code suggestions and implement them - thanks again for showing me different ways and methods Bacardi - I really appreciate it
    TnTSCS is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-16-2011 , 02:00   Re: [CS:S] Friendly Fire Announcer
    Reply With Quote #4

    Fixed Native "KillTimer" reported: Invalid timer handle... sorry about that fellas

    It was a simple oversight on my part
    TnTSCS is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 09-16-2011 , 02:09   Re: [CS:S] Friendly Fire Announcer
    Reply With Quote #5

    eh... still getting the error.. I'll look at it tomorrow... either I'm overlooking something simple, or I'm too tired to be looking at it in the first place

    I think I got it now - gonna let our server run with it for the night and then see if the error comes back - but I do need sleep - LOL

    Last edited by TnTSCS; 09-16-2011 at 02:30.
    TnTSCS is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 10-07-2013 , 12:08   Re: [CS:S] Friendly Fire Announcer
    Reply With Quote #6

    I was going to update this one, but saw Bacardi posted one and it's approved...

    http://forums.alliedmods.net/showthread.php?t=171252

    No need for this one, especially since the posted version spews errors due to poor coding (from my earlier self).
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    gizmic
    Junior Member
    Join Date: Jul 2013
    Old 05-04-2017 , 01:34   Re: [CS:S] Friendly Fire Announcer
    Reply With Quote #7

    used to use this during the css days i just can't seem to find the same equivalent on csgo Bacardi one doesn't display dmg and isn't working for a few months now
    gizmic 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 20:52.


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