Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. function OnPlayerDeath(pid, reason, killerId)
  2. local pname = tes3mp.GetName(pid)
  3. local message = ("%s (%d) %s"):format(pname, pid, reasons.GetReasonName(reason))
  4.  
  5. if reason == reasons.killed then
  6. message = ("%s by %s (%d)"):format(message, tes3mp.GetName(killerId), killerId)
  7. end
  8.  
  9. message = message .. ".\n"
  10. tes3mp.SendMessage(pid, message, true)
  11. tes3mp.Resurrect(pid)
  12. tes3mp.SetCell(pid, config.defaultSpawnCell)
  13. tes3mp.SendCell(pid)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement