Raised This Month: $ Target: $400
 0% 

Damage_Event Hitzones and weapon?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cronck
Member
Join Date: Apr 2005
Old 04-23-2005 , 04:00   Damage_Event Hitzones and weapon?
Reply With Quote #1

How do i make the "Damage" event kill the player that was hit, and show the kill as normal kils with the correct weapon, and headshot too if that really happend...?
Cronck is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-23-2005 , 12:15  
Reply With Quote #2

Code:
#include <amxmodx> #include <engine> public plugin_init() {    register_plugin("???","??.??","?????");    register_event("Damage","event_damage","b","2!0"); } public event_damage(id) {    new weapon, hitplace, attacker = get_user_attacker(id,weapon,hitplace);    user_silentkill(id);    new weaponname[32];    if(weapon) {       get_weaponname(weapon,weaponname,31);    }    make_deathmsg(attacker,id,(hitplace == HIT_HEAD),weaponname); }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Cronck
Member
Join Date: Apr 2005
Old 04-23-2005 , 15:36  
Reply With Quote #3

It doesn't show the weapon in the deathmessage?
And thanks for helping
Cronck is offline
Reply



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:00.


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