AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Damage_Event Hitzones and weapon? (https://forums.alliedmods.net/showthread.php?t=12734)

Cronck 04-23-2005 04:00

Damage_Event Hitzones and weapon?
 
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...?

XxAvalanchexX 04-23-2005 12:15

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); }

Cronck 04-23-2005 15:36

It doesn't show the weapon in the deathmessage?
And thanks for helping :D


All times are GMT -4. The time now is 10:00.

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