Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function JEHud()
- if(LocalPlayer()) then
- if(LocalPlayer():GetNWInt(LocalPlayer():Name() .. "_rtint") == 1 && oneShot) then
- rtTime = CurTime()
- oneShot = false
- end
- draw.RoundedBox( 8, 0, 0, ScrW(), 30, Color(0,0,0,155) )
- draw.DrawText("Food: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_food") .. " (+" .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_farms") * 5 + 5 .. ")", "ScoreboardText", 60, 5, Color(100,255,100,255),1)
- draw.DrawText("Iron: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_iron") .. " (+" .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_mines") * 2 + 2 .. ")", "ScoreboardText", 200, 5, Color(175,175,175,255),1)
- draw.DrawText("Cities: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_cities") , "ScoreboardText", 480, 5, Color(100,0,255,255),1)
- draw.DrawText("Soldiers: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_soldiers") , "ScoreboardText", 570, 5, Color(255,0,0,255),1)
- draw.DrawText("Ranged Support: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_ranged") .. " /5" , "ScoreboardText", 690, 5, Color(255,100,0,255),1)
- draw.DrawText( "Player ID | Name" , "ScoreboardText", ScrW() - 200, 40, Color(255,255,255,255),0)
- if(table.getn(ents.FindByClass("pylon")) != 0) then
- draw.DrawText("Pylons: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_pylons") .. " /" .. math.ceil((table.getn(ents.FindByClass("pylon")) * .6)) , "ScoreboardText", 820, 5, Color(100,255,0,255),1)
- draw.DrawText("Gold: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_gold") .. " (+" .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_cities") * 1 .. ")", "ScoreboardText", 360, 5, Color(255,255,0,255),1)
- else
- draw.DrawText("Gold: " .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_gold") .. " /1000 " .. "(+" .. LocalPlayer():GetNWInt(LocalPlayer():Nick() .. "_cities") * 1 .. ")", "ScoreboardText", 360, 5, Color(255,255,0,255),1)
- end
- draw.RoundedBox( 8, ScrW() / 2 - 20, 30, 200, 12, Color(0,0,0,155) )
- if(CurTime() - rtTime >= 1) then
- draw.RoundedBox( 8, ScrW() / 2 + 5, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 2) then
- draw.RoundedBox( 8, ScrW() / 2 + 25, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 3) then
- draw.RoundedBox( 8, ScrW() / 2 + 45, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 4) then
- draw.RoundedBox( 8, ScrW() / 2 + 65, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 5) then
- draw.RoundedBox( 8, ScrW() / 2 + 85, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 6) then
- draw.RoundedBox( 8, ScrW() / 2 + 105, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 7) then
- draw.RoundedBox( 8, ScrW() / 2 + 125, 32, 5, 8, Color(255,0,0,255) )
- end
- if(CurTime() - rtTime >= 8) then
- draw.RoundedBox( 8, ScrW() / 2 + 145, 32, 5, 8, Color(255,0,0,255) )
- rtTime = CurTime()
- end
- if(showControls) then
- draw.RoundedBox( 8, 0, ScrH() *.65, ScrW(), ScrH(), Color(0,0,0,155) )
- hty = ScrH() * .7
- for i = 1, table.getn(buildToolTip) do
- draw.DrawText( buildToolTip[i] , "ScoreboardText", ScrW() * .5, hty, Color(255,255,255,255),0)
- hty = hty + 20
- end
- hty = ScrH() * .7
- for i = 1, table.getn(militaryToolTip) do
- draw.DrawText( militaryToolTip[i] , "ScoreboardText", 40, hty, Color(255,255,255,255),0)
- hty = hty + 20
- end
- end
- for k, v in pairs(player.GetAll()) do
- table.insert(aPlayers, v:UserID() .. " " .. v:Nick())
- end
- yAdj = 60
- for i = 1, table.getn(aPlayers) do
- draw.DrawText( aPlayers[i] , "ScoreboardText", ScrW() - 200, yAdj, Color(255,255,255,255),0)
- yAdj = yAdj + 20
- end
- if(helpMe) then
- draw.RoundedBox( 8, 0, 0, ScrW(), ScrH(), Color(50,50,75,100) )
- hty = 160
- for i = 1, table.getn(HelpText) do
- draw.DrawText( HelpText[i] , "ScoreboardText", ScrW() / 8, hty, Color(255,255,255,255),0)
- hty = hty + 20
- end
- end
- if(dispVicScreen) then
- draw.RoundedBox( 8, 0, 0, ScrW(), ScrH(), Color(0,0,0,255) )
- draw.DrawText( winnerNick .. " has won the round!", "ScoreboardText", ScrW() /2, ScrH()/2, Color(255,255,255,255),1)
- draw.DrawText( "He will go into the history books as " .. winnerNickTitle , "ScoreboardText", ScrW() /2, ScrH()/2 + 18, Color(255,255,255,255),1)
- draw.DrawText( "for his victory over " .. winnerNickDescription, "ScoreboardText", ScrW() /2, ScrH()/2 + 36, Color(255,255,255,255),1)
- end
- aPlayers = {}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement