Advertisement
Guest User

egeht

a guest
Apr 24th, 2015
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. hook.Add( "HUDPaint", "SpectateHUD", function()
  2.     local ply = LocalPlayer()
  3.     local X = ScrW()
  4.     local Y = ScrH()
  5.     local ob = ply:GetObserverTarget()
  6.     if ply:Team() == TEAM_SPECTATOR or !ply:Alive() then
  7.         draw.RoundedBox( 0, X/2-200, Y/2+100, 400, 60, Color( 0, 0, 0, 200 ) )
  8.         draw.RoundedBox( 0, X/2-200, Y/2+160, 400, 30, Color( 255, 255, 255, 255 ) )
  9.         draw.RoundedBox( 0, X/2-200, Y/2+190, 400, 60, Color( 0, 0, 0, 200 ) )
  10.         if ob and ob:IsValid() and ob:IsPlayer() and ob:Alive() then
  11.             draw.SimpleText( ob:Nick(), "Name", X/2+100, Y/2+180, team.GetColor(ob:Team()), TEXT_ALIGN_LEFT )
  12.         end
  13.     end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement