require 'lib.sampfuncs'
require 'lib.moonloader'
local sampev = require 'lib.samp.events'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
while true do
wait(0)
end
end
function sampev.onPlayerDeathNotification(killerId, killedId, reason)
result, pedK = sampGetCharHandleBySampPlayerId(killedId)
if taskKillCharOnFoot(PLAYER_PED, pedK) then
sampSendChat('/rb '..string.gsub(sampGetPlayerNickname(killedId), '_', ' '))
end
end