OnClientPlayerStealthKill: Difference between revisions
Jump to navigation
Jump to search
Cazomino05 (talk | contribs) mNo edit summary |
|||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
This example disables stealh kills. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addEventHandler("onClientPlayerStealthKill",getLocalPlayer(), | |||
function (targetPlayer) | |||
cancelEvent() | |||
end) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 14:30, 19 May 2011
This event is triggered when a player stealth kills another player.
Parameters
element targetPlayer
Source
The source of this event is the player that initiated the stealth kill.
Cancel effect
If this event is canceled, then the stealth kill is aborted.
Example
This example disables stealh kills.
addEventHandler("onClientPlayerStealthKill",getLocalPlayer(), function (targetPlayer) cancelEvent() end)
See Also
Client player events
- onClientPlayerChangeNick
- onClientPlayerChoke
- onClientPlayerDamage
- onClientPlayerHeliKilled
- onClientPlayerHitByWaterCannon
- onClientPlayerJoin
- onClientPlayerPickupHit
- onClientPlayerPickupLeave
- onClientPlayerQuit
- onClientPlayerRadioSwitch
- onClientPlayerSpawn
- onClientPlayerStealthKill
- onClientPlayerStuntFinish
- onClientPlayerStuntStart
- onClientPlayerTarget
- onClientPlayerVehicleEnter
- onClientPlayerVehicleExit
- onClientPlayerVoicePause
- onClientPlayerVoiceResumed
- onClientPlayerVoiceStart
- onClientPlayerVoiceStop
- onClientPlayerWasted
- onClientPlayerWeaponFire
- onClientPlayerWeaponSwitch
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled