get_user_attacker

Синтаксис

native get_user_attacker(index, ...);

Употреба

index
Client index
...
If provided, the attacker weapon will be stored in an
optional second parameter, and the body hit place will be
stored in an optional third parameter

Описание

Returns the last known attacker of a client.

Забележка

As of AMXX 1.75 this can return a non-client entity index if the client
was attacked by a non-client entity.

Връщаща стойност

Attacker client index, a non-client entity or 0 if no
attacker was found

Грешка

If the client index is not within the range of 1 to
MaxClients, an error will be thrown.