View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2008 , 06:00   Re: New XP Mod tutorial
Reply With Quote #9

@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.
__________________
Arkshine is offline