Quote:
Originally Posted by arkshine
@flyen16
Can you tell me why are you using get_user_attacker() ?
Code:
public eDeath( ) { new iVictim = read_data( 2 ) new weapon, hitplace, attacker = get_user_attacker(iVictim,weapon,hitplace) if(hitplace == HIT_HEAD)
Using DeathMsg event, the killer is provided in the first argument ( read_data(1) ) and to know if it's a headshot, it's provided in the third argument ( read_data(3 ) ). And to know the weapon, see the fourth argument.
|
oh crap, lol i wasnt paying attention lol.
ill fix it, thx for telling me
__________________