custom_weapon_dmg

Синтаксис

native custom_weapon_dmg(weapon, att, vic, damage, hitplace = 0);

Употреба

weapon
Custom weapon id
att
Attacker client index
vic
Victim client index
damage
Damage dealt
hitplace
Optional body hitplace

Описание

Triggers a damage event on a custom weapon, adding it to the internal stats.

Забележка

This will also call the client_damage() and client_kill() forwards if
applicable.

Забележка

For a list of possible body hitplaces see the HIT_* constants in
amxconst.inc

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

Тази функция няма връщаща стойност.

Грешка

If the weapon id is not a custom weapon, an invalid client
index, damage value or hitplace is provided, an error will
be thrown.