local ev = require "moonloader".audiostream_state
local kill = loadAudioStream("moonloader/resource/Kill.mp3")
local sampev = require('samp.events')
function main()
if not isSampLoaded() then return end
while not isSampAvailable() do
wait(5000)
thisScript():reload()
end
end
function sampev.onPlayerDeathNotification(killerId, killedId, reason)
local _, iid = sampGetPlayerIdByCharHandle(PLAYER_PED)
if killerId == iid then
setAudioStreamState(kill, ev.PLAY)
end
end