Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local set = 50
- local get = CurTime()
- if CLIENT then
- surface.CreateFont("cc", {font = "Arial",size = ScrH()/13,})
- hook.Add("HUDPaint", "test", function()
- local w, h = ScrW(), ScrH()
- str = math.Clamp(set+(get-CurTime()),0,set)
- gay = (w/2-6)/set*str
- draw.RoundedBox( 1, w/2/2, h/2/2, w/2, h/13, Color(255,255,255,255))
- draw.RoundedBox( 1, w/2/2+5, h/2/2+5, w/2-10-gay, h/13-10, Color(255,0,0,255))
- draw.DrawText( "server reload : "..math.ceil(str), "cc",w/2, h/2/2, Color(0,0,0,255),1)
- end)
- end
- if CLIENT then
- hook.Add("Think", "test", function()
- str = math.Clamp(set+(get-CurTime()),0,set)
- if(math.ceil(str) == 0)then RunConsoleCommand( "changelevel", game.GetMap() ) end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment