Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- surface.CreateFont( "Black", {
- font = "Arial",
- size = 25,
- } )
- surface.CreateFont( "Bllack", {
- font = "Arial",
- size = 60,
- } )
- surface.CreateFont( "BBlack", {
- font = "Arial",
- size = 80,
- } )
- local ply = LocalPlayer()
- if ply:Alive() then
- local healthStatus = "Healthy";
- local hp = ply:Health()
- local armor = ply:Armor()
- local localplayer = LocalPlayer()
- local nick, plyTeam = localplayer:Nick(), localplayer:Team()
- local money = LocalPlayer():getDarkRPVar("money")
- local salary = LocalPlayer():getDarkRPVar("salary")
- local gunlisc = LocalPlayer():getDarkRPVar("HasGunlicense")
- if (hp < 1) then healthStatus = "Unconcious"
- elseif (hp < 20) then healthStatus = "Critically Injured"
- elseif (hp < 40) then healthStatus = "Majorly Injured"
- elseif (hp < 60) then healthStatus = "Badly Injured"
- elseif (hp < 80) then healthStatus = "Mildly Injured"
- elseif (hp < 90) then healthStatus = "Slightly Injured"
- elseif (hp < 100) then healthStatus = "Slightly Bruised"
- end
- local percent = hp / 100
- local hpcolor = math.Clamp(percent * 255, 0, 255)
- local percent2 = armor / 100
- local color2 = math.Clamp(percent2 * 255, 0, 255)
- hook.Add( "HUDPaint", "HUDPaint_DrawABox", function()
- timer.Simple(1, function() draw.SimpleText(healthStatus,"Black",0,0,Color(255,255,255,255))end );
- end)
- hook.Add("HudPaint" , "DrawMyHud" , function()
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement