Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. function HoveringNames()
  2.  
  3. for _, target in pairs(player.GetAll()) do
  4. local ply = LocalPlayer()
  5. if ply:IsSuperAdmin() or ply:Team() == TEAM_STAFF then
  6. if target:Alive() and target != ply then
  7.  
  8. local targetPos = target:GetPos() + Vector(0,0,84)
  9. local targetDistance = math.floor((LocalPlayer():GetPos():Distance( targetPos ))/40)
  10. local targetScreenpos = targetPos:ToScreen()
  11. draw.SimpleText(target:Nick(), "Trebuchet18", tonumber(targetScreenpos.x), tonumber(targetScreenpos.y), Color(200,25,25,200), TEXT_ALIGN_CENTER)
  12.  
  13. end
  14. end
  15. end
  16. end
  17. hook.Add("HUDPaint", "HoveringNames", HoveringNames)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement