Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. roundstats.deaths = roundstats.deaths + 1
  2. victim:SetTeam(TEAM_SPEC)
  3. //victim:UnUseArmor()
  4. if #victim:GetWeapons() > 0 then
  5. local pos = victim:GetPos()
  6. for k,v in pairs(victim:GetWeapons()) do
  7. local candrop = true
  8. if v.droppable != nil then
  9. if v.droppable == false then
  10. candrop = false
  11. end
  12. end
  13. if candrop then
  14. local wep = ents.Create( v:GetClass() )
  15. if IsValid( wep ) then
  16. wep:SetPos( pos )
  17. wep:Spawn()
  18. local atype = v:GetPrimaryAmmoType()
  19. if atype > 0 then
  20. wep.SavedAmmo = v:Clip1()
  21. end
  22. end
  23.  
  24. local wep = ents.Create( v:GetClass() )
  25. if IsValid( wep ) then
  26. wep:SetPos( pos )
  27. wep:Spawn()
  28. wep:SetClip1(v:Clip1())
  29. end
  30. end
  31. end
  32. end
  33. WinCheck()
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement