Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- surface.CreateFont( "TD_HUDFONT", {
- font = "DermaDefault",
- size = 20,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = true,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
- hook.Add( "HUDPaint", "TD_FirstHud", function()
- local lp = LocalPlayer()
- local wep = LocalPlayer():GetActiveWeapon()
- draw.RoundedBox(0, 236.0, ScrH()-40, 1122, 42, Color(41, 128, 185, 191))
- draw.RoundedBox(10, 0, ScrH()-90, 237.5, 95, Color(41, 128, 185, 191))
- draw.DrawText(lp:Nick(), "TD_HUDFONT", ScrH()-735, 695, Color(0, 0, 0, 255))
- draw.DrawText(lp:Health(), "TD_HUDFONT", ScrH()-735, 735, Color(0, 0, 0, 255))
- draw.DrawText(team.GetName( lp:Team() ), "TD_HUDFONT", ScrH()-483, 735, Color(0, 0, 0, 255))
- local heart = Material("icon16/heart.png")
- surface.SetMaterial(heart)
- surface.SetDrawColor(Color(255, 255, 255, 255))
- surface.DrawTexturedRect(0, ScrH()-35, 20, 20, Color(255, 255, 255, 255))
- local group = Material("icon16/group.png")
- surface.SetMaterial(group)
- surface.SetDrawColor(Color(255, 255, 255, 255))
- surface.DrawTexturedRect(260, ScrH()-35, 20, 20, Color(255, 255, 255, 255))
- local user = Material("icon16/user.png")
- surface.SetMaterial(user)
- surface.SetDrawColor(Color(255, 255, 255, 255))
- surface.DrawTexturedRect(0, ScrH()-73, 20, 20, Color(255, 255, 255, 255))
- end )
- hook.Add( "HUDShouldDraw", "HideDEFAULTHud", function( name )
- if ( name == "CHudHealth" or name == "CHudBattery" ) then
- return false
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement