Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnPlayerDeath(pid, reason, killerId)
- local pname = tes3mp.GetName(pid)
- local message = ("%s (%d) %s"):format(pname, pid, reasons.GetReasonName(reason))
- if reason == reasons.killed then
- message = ("%s by %s (%d)"):format(message, tes3mp.GetName(killerId), killerId)
- end
- message = message .. ".\n"
- tes3mp.SendMessage(pid, message, true)
- tes3mp.Resurrect(pid)
- tes3mp.SetCell(pid, config.defaultSpawnCell)
- tes3mp.SendCell(pid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement