I'm currently trying to make my own hud. Its not finished but I keep getting some <eof> errors near end but I just can't figure it out...
[code]
function PAINT:HUD()
local Bar = vgui.Create( "DHudBar" )
GM:AddHUDItem( Bar, 2 )
Bar:SetSize(20, 60)
Bar:SetPos(5, 5)
Bar:SetText("100")
end
local Bar2 = vgui.Create( "DHudBar" )
GM:AddHUDItem( Bar2, 2 )
Bar2:SetSize(20, 60)
Bar2:SetPos(5, 25)
Bar2:SetText("".. LocalPlayer():PS_GetPoints() .."")
end
local Bar3 = vgui.Create( "DHudBar" )
Bar3:SetSize(12, 60)
Bar3:SetPos(5, -255)
Bar3:SetValueFunction( function()
if ( GetGlobalFloat( "RoundStartTime", 0 ) > CurTime() ) then return GetGlobalFloat( "RoundStartTime", 0 ) end
return GetGlobalFloat( "RoundEndTime" ) end )
end
local Bar4 = vgui.Create( "DHudBar" )
Bar4:SetSize(15, 60)
Bar4:SetPos(19, -255)
Bar4:SetText(""..c.."")
function GetTeam (ply)
if (ply:Team() == TEAM_GUARD then
c == "Guard"
r == 0, 0, 255
elseif (ply:Team() == TEAM_PRISONER then
c == "Prisoner"
r == 255, 0, 0
else
c == Unknown
r == 0, 0, 0
end
Bar4:SetTextColor(..r..)
end
[/code]
[editline]5th November 2013[/editline]
Sorry, I don't know why this is doubled... I have already created this. Sorry
Sorry, you need to Log In to post a reply to this thread.