Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- surface.CreateFont("PlayerFont", {size = 36, weight = 0, font = "Calibri Light"})
- function DrawName( ply )
- if !ply:Alive() then return end
- local offset = Vector( 0, 0, 85 )
- local ang = LocalPlayer():EyeAngles()
- local pos = ply:GetPos() + offset + ang:Up()
- ang:RotateAroundAxis( ang:Forward(), 90 )
- ang:RotateAroundAxis( ang:Right(), 90 )
- cam.Start3D2D( pos, Angle( 0, ang.y, 90 ), 0.25 )
- draw.DrawText( ply:GetName(), "PlayerFont", 2, 2, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER )
- cam.End3D2D()
- end
- hook.Remove("PostPlayerDraw", "DrawPlayerInfo")
- hook.Remove("PostPlayerDraw", "KBW_DrawPlayerInfo")
- hook.Add("PostPlayerDraw", "KBW_DrawPlayerInfo", function(ply)
- hook.Add( "PostPlayerDraw", "DrawName", DrawName )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement