native
get_user_attacker
Syntax
native get_user_attacker(index,...);
Description
If player is not attacked function returns 0, in other
case returns index of attacking player. On second and third
parameter you may get info about weapon and body hit place.
As of 1.75, get_user_attacker can return a non-player index if the player was attacked by a non-player entity.