- Dokumentacja
- Zdarzenia serwera
- onPlayerStealthKill
Zdarzenie
onPlayerStealthKill
Gracz zabija kogoś po cichu nożem od tyłu. Możesz zablokować zabójstwo; inaczej ofiara dostaje onPlayerWasted z stealth = true.
Obsługa
addEventHandler("onPlayerStealthKill", root, function(targetPlayer) ... end)Parametry
targetPlayerplayer- Ofiara.
Źródło
source to zabójca.
cancelEvent() = ofiara żyje.
Przykład
addEventHandler("onPlayerStealthKill", root, function(target)
if getElementData(target, "admin") then cancelEvent() end
end)