View Single Post
flyeni6
Senior Member
Join Date: Jun 2006
Location: CAli
Old 02-02-2008 , 06:15   Re: New XP Mod tutorial
Reply With Quote #10

Quote:
Originally Posted by arkshine View Post
@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
__________________


Last edited by flyeni6; 02-02-2008 at 06:20.
flyeni6 is offline
Send a message via AIM to flyeni6