Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if npcTarget:GetClass() == "npc_zombie" then GAMEMODE:RemoveAll("npc_headcrab") end
- if !entKiller:IsPlayer() && npcTarget.LastPlayerAttacker then entKiller = npcTarget.LastPlayerAttacker end
- if entKiller.EntityDamageData then
- if entKiller.EntityDamageData[npcTarget] then
- for _, ply in pairs(player.GetAll()) do
- if ply.EntityDamageData then
- if ply.EntityDamageData[npcTarget] then
- if ply.EntityDamageData[npcTarget] > entKiller.EntityDamageData[npcTarget] then
- entKiller = ply
- end
- end
- end
- end
- end
- end
- ---------------------------------------------------------------------------------
- for _, ply in pairs(player.GetAll()) do
- if ply.EntityDamageData then
- if ply.EntityDamageData[npcTarget] then
- ply.EntityDamageData[npcTarget] = nil
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement