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