Raised This Month: $193 Target: $400
 48% 

Show Team-Attacks


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   v3x (159)
capndurk
Senior Member
Join Date: Feb 2006
Old 03-23-2006 , 21:48   Show Team-Attacks
Reply With Quote #1

Show Team-Attacks Plugin
  • - Shows all instances of friendly fire to admins (from both teams) along with information such as damage amount and the weapon, so that admins may be able to more efficiently decide between cases of misfire and intentional friendly fire.

Example: "(Terrorist) n!nja attacked teammate Jim with a Glock for 18 damage"

Note: This prints a message every time a bullet hits the player, so an admin can tell who shot first, and who he shot, and how much damage, and etc.


Why create this plugin? Why should I use it?
  • Let's say you're the only admin in the server, and some guy accuses a person on the other team of attacking him, and it's usually his word against the other guy's. With this plugin, you can see the initial mistake of knife attack (5 dmg) and then the shot of the M4A1 (30 dmg) and then the spray of the machine gun (108 total dmg) until the death of the initial victim.

    Basically, this plugin attempts to clear up any arguments between misfiring and intentional team-attacking.

Cvars:
(ta stands for teamattack)
  • - ta_toggle: toggles the plugin itself, basically. I created it because it's easier to label a cvar than to comment out a line in plugins.ini. Also added the option to send the team-attack messages to all players.
    • Usage: (0 - off, 1 - messages go to admins only, 2 - messages go to everyone)
    - ta_weapon: toggles the option to print the weapon used in friendly fire. I created it in case an admin wants a simpler message.
    • Usage: (0 - off, 1 - prints weapon in message)
    - ta_damage: toggles the option to print the damage amount. I created it in case an admin wants a simpler message.
    • Usage: (0 - off, 1 - prints damage in message)

Required Modules:
  • Cstrike
  • Engine

Credits & Changelog:

Code:
/* *   Credits: "Standard Admin Color Chat" plugin by vandercal: *          Used the code for the SendMessage() function. * *          VEN & v3x: *          Aided me in blocking the default team attack *          message with the register_message() function. * * *   Changelog: * *      - v1.2: Fixed damage message * *      - v1.1: Removed default team attack message *            Added same team attack message for all teams *            Added cvar to turn on/off plugin * *      - v1.0: Initial program * */

Installation:
  • 1) In your plugins.ini file, add the line: showteamattack.amxx
    (doesn't matter where, but for organizational purposes it should be under the Custom section)

    2) In your plugins folder, add the file: showteamattack.amxx

    3) On the next map change, the plugin should be loaded and working.

- Tested and working on AMX v1.60. Should work on versions later than 1.60, but I won't be offering assistance for versions earlier than 1.60.

- Please submit any bugs or requests of change in the plugin via this thread.
Attached Files
File Type: sma Get Plugin or Get Source (showteamattack.sma - 3702 views - 6.6 KB)

Last edited by capndurk; 01-18-2007 at 23:06.
capndurk is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-23-2006 , 21:51  
Reply With Quote #2

good idea..
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
capndurk
Senior Member
Join Date: Feb 2006
Old 03-23-2006 , 21:56  
Reply With Quote #3

Lol, thanks
capndurk is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-23-2006 , 22:01  
Reply With Quote #4

well..heres a suggestion...

Make it show the first shot and the kill shot..that way u can actually see what happened instead of seeing:

"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA killed capndurk with an AK with 10 damage"


you would see:

"SWEATYBANANA shot capndurk with an AK with 10 damage"
"SWEATYBANANA killed capndurk with an AK"
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
capndurk
Senior Member
Join Date: Feb 2006
Old 03-23-2006 , 22:05  
Reply With Quote #5

Well, I did see that as the only disadvantage... it will print whenever a bullet hits the person.. However, I can see that as having some use to it, because you'll know what happens in between the kill shot and the first shots... if it was one guy attacking the other, or if it was a two-way fight.
capndurk is offline
slurpycof
Senior Member
Join Date: Nov 2004
Old 03-23-2006 , 23:32  
Reply With Quote #6

Great idea. I like it shows you all of them so you know for sure if the guy was being a jerk.
slurpycof is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-23-2006 , 23:52  
Reply With Quote #7

Thanks

And thanks v3x for approving
capndurk is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-24-2006 , 00:40  
Reply With Quote #8

Updated to v1.2 - Damage variable was only 2 characters long (so the 100 damage levels were printing 10), so that is now fixed

If you downloaded v1.1, please update so it will print correctly ;).
capndurk is offline
Dan-o
Member
Join Date: Mar 2006
Location: myspace?
Old 03-30-2006 , 00:25  
Reply With Quote #9

haha this is so nice, know i can see who starts the fights when i say dont kill on the surf maps! friggin idiots! I give it a -10, +100.
__________________
Code:
Gaben likes -Karma
Quote:
One man said that a mod about Gaben was impossible, that man was shot, droped in the ocean, and eaten by sharks.
Dan-o is offline
Send a message via MSN to Dan-o
capndurk
Senior Member
Join Date: Feb 2006
Old 03-31-2006 , 13:11  
Reply With Quote #10

Quote:
Originally Posted by Dan-o
haha this is so nice, know i can see who starts the fights when i say dont kill on the surf maps! friggin idiots! I give it a -10, +100.
Glad to help out
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk 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 01:29.


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