Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GAMESTATE_WAIT = -1
- GAMESTATE_BUILD = 0
- GAMESTATE_GET = 1
- GAMESTATE_DESTROY = 2
- GAMESTATE_END = 3
- surface.CreateFont("Trebuchet21",{
- font = "Trebuchet24",
- size = 21,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- })
- local health = 0
- local function FloodDrawHUD()
- GAMEMODE.GameState = 1
- GAMEMODE.NextState = CurTime() + 10
- local state = GAMEMODE.GameState
- local quest = ""
- local posx = 30
- local posy = ScrH() - 90
- if state == GAMESTATE_WAIT then quest = "WAITING FOR PLAYERS"
- elseif state == GAMESTATE_BUILD then quest = "BUILD A BOAT "
- elseif state == GAMESTATE_GET then quest = "GET ON YOUR BOAT "
- elseif state == GAMESTATE_DESTROY then quest = "DESTROY ENEMY BOATS "
- elseif state == GAMESTATE_END then quest = "RESTARTING THE ROUND "
- end
- quest = quest .. (state ==GAMESTATE_WAIT and "" or string.ToMinutesSeconds((GAMEMODE.NextState or CurTime()) - CurTime()))
- health = (health *30 + LocalPlayer():Health())/31
- /* BACKGROUND */ draw.RoundedBox(0, posx, posy, 320, 77, Color(0,0,0,100))
- /* HEALTH */ draw.RoundedBox(0, posx, posy, health /100 *320, 36, Color(237,50,0))
- /* QUEST */ draw.DrawText(quest,"Trebuchet24",posx +320,posy -22,Color(255,255,255),TEXT_ALIGN_RIGHT)
- /* CASH */ draw.DrawText("CASH","Trebuchet21",posx +3,posy +35,Color(200,200,200),TEXT_ALIGN_LEFT)
- draw.DrawText("$" .. LocalPlayer():GetMoney(),"Trebuchet21",posx +58,posy +35,Color(255,186,0),TEXT_ALIGN_LEFT)
- /* TEAM */ draw.DrawText("TEAM","Trebuchet21",posx +3,posy +54,Color(200,200,200),TEXT_ALIGN_LEFT)
- draw.DrawText("FagTeam43","Trebuchet21",posx +59,posy +54,Color(255,186,0),TEXT_ALIGN_LEFT)
- /* WINS */ draw.DrawText("WINS","Trebuchet21",posx +317,posy +35,Color(200,200,200),TEXT_ALIGN_RIGHT)
- draw.DrawText("" .. LocalPlayer():GetWins(),"Trebuchet21",posx +251,posy +35,Color(255,186,0),TEXT_ALIGN_RIGHT)
- /* LOSES */ draw.DrawText("LOSSES","Trebuchet21",posx +317,posy +54,Color(200,200,200),TEXT_ALIGN_RIGHT)
- draw.DrawText("" .. LocalPlayer():GetLosses(),"Trebuchet21",posx +251,posy +54,Color(255,186,0),TEXT_ALIGN_RIGHT)
- end
- function GM:HUDPaint()
- FloodDrawHUD()
- end
- function GM:HUDShouldDraw(element)
- if element == "CHudHealth" then
- return false
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement