deathward

Untitled

Jan 21st, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. hook.Add( "PreDrawHalos", "swrp_draw", function()
  2.  
  3. if !plys then plys = {} end
  4. if !frame then frame = 0 end
  5.  
  6. frame = frame + 1
  7.  
  8. if frame == 20 then
  9. frame = 0
  10. plys = {}
  11. for k,v in pairs(player.GetAll()) do
  12. if v:GetPos():Distance(LocalPlayer():GetPos()) <= 1200 then
  13. table.insert(plys, v)
  14. end
  15. end
  16. end
  17.  
  18. halo.Add(plys, Color( 0, 0, 255 ), 2, 2, 1, true, true)
  19.  
  20. end )
Advertisement
Add Comment
Please, Sign In to add comment