onClientKill
From Liberty Unleashed Wiki
This event is called when the local player kills somebody else.
Syntax
function onClientKill( player, weapon, bodypart )
Arguments
- player - The pointer to the player that was killed
- weapon - The weapon used
- bodypart - The bodypart that was hit
Returns
This event does not handle return values.
Example
This example outputs a message whenever you kill another player.
function onClientKill( player, weapon, bodypart ) { // Output who you killed Message( "* You just killed " + player.Name + "!", 255, 0, 0 ); return 1; }
Notes
-- List of used functions and other notes here.
Related Events
- onClientArmourChange
- onClientCashChange
- onClientCollideWithPlayer
- onClientCommand
- onClientDeath
- onClientFall
- onClientHealthChange
- onClientHurt
- onClientKill
- onClientKeyStateChange
- onClientRequestClass
- onClientRequestSpawn
- onClientShot
- onClientSpawn
- onClientUseDetonator
- onClientWeaponChange
- onPlayerDeath
- onPlayerJoin
- onPlayerKill
- onPlayerPart
- onPlayerSpawn