Quote:
Originally Posted by HamletEagle
What do you want to check ? If the player hits a wall when shooting ?
|
I want to check if player killed victim with a headshot through a wall.
I can check with DeathMsg event a simple headshot (hitted not through a wall)
PHP Code:
register_event("DeathMsg", "hook_death", "a", "1>0")
But I don't mind how to register a headshot through a wall..
PHP Code:
public hook_death()
{
iAttacker = read_data(1)
if ( (read_data(3) == 1) && (read_data(5) == 0) )
{
// is headshot (not wallbang)
}
}
Hope you understand what i mean, thanks!