Advertisement
Guest User

HUD

a guest
Dec 11th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local function Base()
  2.  
  3. draw.RoundedBox(6, ScrW() - 400 - 915, ScrH () - 125 - 10, 235, 150, Color(51, 102, 153, 195))
  4.  
  5. draw.RoundedBox(6, ScrW() - 1287, ScrH () - 133, 200-20, 20, Color(100,100,100,200))
  6.  
  7. draw.RoundedBox(6, ScrW() - 1287, ScrH () - 110, 200-20, 20, Color(100,100,100,200))
  8.  
  9. local DrawHealth = LocalPlayer():Health() or 0
  10. local EchoHealth = LocalPlayer():Health() or 0
  11.  
  12. if DrawHealth > 100 then DrawHealth = 100 end
  13. if DrawHealth < 0 then DrawHealth = 0 end
  14.  
  15. if DrawHealth != 0 then
  16. draw.RoundedBox(6, ScrW() - 1287 + 2, ScrH () - 133 + 2, (200-24) * DrawHealth / 100, 20-4, Color(255,0,0,255))
  17. end
  18.  
  19. draw.DrawText( "Health: "..EchoHealth, "Trebuchet18", ScrW() - 1287 + 2, ScrH () - 133 + 2, Color(255,255,255,255))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement