Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. PLUGIN.name = "NPC Item Drop"
  2. PLUGIN.author = "Halokiller38"
  3. PLUGIN.desc = "This plugin makes it when you kill a npc it drops something."
  4.  
  5. function PLUGIN:OnNPCKilled(entity)
  6. local class = entity:GetClass()
  7.  
  8. if (class == "npc_vj_mutant_nosalis" or class == "npc_vj_mutant_watcher") then
  9. nut.item.spawn("creaturemeat", entity:GetPos() + Vector(0, 0, 8))
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement