Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. if npcTarget:GetClass() == "npc_zombie" then GAMEMODE:RemoveAll("npc_headcrab") end
  2. if !entKiller:IsPlayer() && npcTarget.LastPlayerAttacker then entKiller = npcTarget.LastPlayerAttacker end
  3. if entKiller.EntityDamageData then
  4. if entKiller.EntityDamageData[npcTarget] then
  5. for _, ply in pairs(player.GetAll()) do
  6. if ply.EntityDamageData then
  7. if ply.EntityDamageData[npcTarget] then
  8. if ply.EntityDamageData[npcTarget] > entKiller.EntityDamageData[npcTarget] then
  9. entKiller = ply
  10. end
  11. end
  12. end
  13. end
  14. end
  15. end
  16. ---------------------------------------------------------------------------------
  17. for _, ply in pairs(player.GetAll()) do
  18. if ply.EntityDamageData then
  19. if ply.EntityDamageData[npcTarget] then
  20. ply.EntityDamageData[npcTarget] = nil
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement