Advertisement
Guest User

Untitled

a guest
Jan 24th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.56 KB | None | 0 0
  1. surface.CreateFont( "TD_HUDFONT", {
  2.     font = "DermaDefault",
  3.     size = 20,
  4.     weight = 500,
  5.     blursize = 0,
  6.     scanlines = 0,
  7.     antialias = true,
  8.     underline = false,
  9.     italic = true,
  10.     strikeout = false,
  11.     symbol = false,
  12.     rotary = false,
  13.     shadow = false,
  14.     additive = false,
  15.     outline = false,
  16. } )
  17. hook.Add( "HUDPaint", "TD_FirstHud", function()
  18.  
  19. local lp = LocalPlayer()
  20. local wep = LocalPlayer():GetActiveWeapon()
  21. draw.RoundedBox(0, 236.0, ScrH()-40, 1122, 42, Color(41, 128, 185, 191))
  22. draw.RoundedBox(10, 0, ScrH()-90, 237.5, 95, Color(41, 128, 185, 191))
  23.  
  24.  
  25. draw.DrawText(lp:Nick(), "TD_HUDFONT", ScrH()-735, 695, Color(0, 0, 0, 255))
  26. draw.DrawText(lp:Health(), "TD_HUDFONT", ScrH()-735, 735, Color(0, 0, 0, 255))
  27. draw.DrawText(team.GetName( lp:Team() ), "TD_HUDFONT", ScrH()-483, 735, Color(0, 0, 0, 255))
  28.  
  29. local heart = Material("icon16/heart.png")
  30. surface.SetMaterial(heart)
  31. surface.SetDrawColor(Color(255, 255, 255, 255))
  32. surface.DrawTexturedRect(0, ScrH()-35, 20, 20, Color(255, 255, 255, 255))
  33.  
  34. local group = Material("icon16/group.png")
  35. surface.SetMaterial(group)
  36. surface.SetDrawColor(Color(255, 255, 255, 255))
  37. surface.DrawTexturedRect(260, ScrH()-35, 20, 20, Color(255, 255, 255, 255))
  38.  
  39. local user = Material("icon16/user.png")
  40. surface.SetMaterial(user)
  41. surface.SetDrawColor(Color(255, 255, 255, 255))
  42. surface.DrawTexturedRect(0, ScrH()-73, 20, 20, Color(255, 255, 255, 255))
  43. end )
  44.  
  45. hook.Add( "HUDShouldDraw", "HideDEFAULTHud", function( name )
  46.      if ( name == "CHudHealth" or name == "CHudBattery" ) then
  47.          return false
  48.      end
  49. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement