0 Members and 2 Guests are viewing this topic.
function DrawPlayerArmor() if (LocalPlayer():Armor() > 0) then draw.RoundedBox( 8, 32, 16, ScrW() - 64, 16, Color(200, 200, 200, 200)) draw.RoundedBox( 8, 34, 18, (ScrW() - 68)*(LocalPlayer():Armor() / 1000), 12, Color(0, 0, 200, 200)) endendhook.Add("HUDPaint","drawplayerarmor",DrawPlayerArmor)
what i googled "garrys mod get armor"what i got http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexe5e4.htmlCode: [Select]function DrawPlayerArmor() if (LocalPlayer():Armor() > 0) then draw.RoundedBox( 8, 32, 16, ScrW() - 64, 16, Color(200, 200, 200, 200)) draw.RoundedBox( 8, 34, 18, (ScrW() - 68)*(LocalPlayer():Armor() / 1000), 12, Color(0, 0, 200, 200)) endendhook.Add("HUDPaint","drawplayerarmor",DrawPlayerArmor)this should work might not (at school can not test) hope i helped !ps: THIS MIGHT ERROR IF RAN SERVER SIDE
A man may die, nations may rise and fall, but an idea lives on.