Quote:
Originally Posted by jim_yang
register the event like this
Code:
register_event("DeathMsg","head_shot","a","3=1")
then you don't need to read_data(3) to see if it was a headshot.
|
I prefer
Code:
public client_death ( killer, victim, wpnindex, hitplace, TK )
//Called when a player dies.
new headshot = (hitplace == HIT_HEAD) ? 1 : 0
No need to register...it's called automatically