Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function HoveringNames()
- for _, target in pairs(player.GetAll()) do
- local ply = LocalPlayer()
- if ply:IsSuperAdmin() or ply:Team() == TEAM_STAFF then
- if target:Alive() and target != ply then
- local targetPos = target:GetPos() + Vector(0,0,84)
- local targetDistance = math.floor((LocalPlayer():GetPos():Distance( targetPos ))/40)
- local targetScreenpos = targetPos:ToScreen()
- draw.SimpleText(target:Nick(), "Trebuchet18", tonumber(targetScreenpos.x), tonumber(targetScreenpos.y), Color(200,25,25,200), TEXT_ALIGN_CENTER)
- end
- end
- end
- end
- hook.Add("HUDPaint", "HoveringNames", HoveringNames)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement