Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "HUDPaint", "SpectateHUD", function()
- local ply = LocalPlayer()
- local X = ScrW()
- local Y = ScrH()
- local ob = ply:GetObserverTarget()
- if ply:Team() == TEAM_SPECTATOR or !ply:Alive() then
- draw.RoundedBox( 0, X/2-200, Y/2+100, 400, 60, Color( 0, 0, 0, 200 ) )
- draw.RoundedBox( 0, X/2-200, Y/2+160, 400, 30, Color( 255, 255, 255, 255 ) )
- draw.RoundedBox( 0, X/2-200, Y/2+190, 400, 60, Color( 0, 0, 0, 200 ) )
- if ob and ob:IsValid() and ob:IsPlayer() and ob:Alive() then
- draw.SimpleText( ob:Nick(), "Name", X/2+100, Y/2+180, team.GetColor(ob:Team()), TEXT_ALIGN_LEFT )
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement