onPlayerKill
Description
This event is called every time a player kills another (and they're not in the same team).
| Name | Description |
|---|---|
| damagedid | Who is being killed |
| player | Who is attacking |
| reason | Weapon ID |
| bodypart | Bodypart ID |
Example
Send message to all when player killed damagedid
function onPlayerKill(damagedid, player, reason, bodypart) { Message( "** " + player.Name + " killed " + damagedid.Name + " (" + GetWeaponName( reason ) + ") (" + bodypart + ")" );}