CapsAdmin

Untitled

Jul 21st, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. local set = 50
  2. local get = CurTime()
  3.  
  4. if CLIENT then
  5.     surface.CreateFont("cc", {font = "Arial",size = ScrH()/13,})
  6.  
  7.     hook.Add("HUDPaint", "test", function()
  8.         local w, h = ScrW(), ScrH()
  9.         str = math.Clamp(set+(get-CurTime()),0,set)
  10.         gay = (w/2-6)/set*str
  11.         draw.RoundedBox( 1, w/2/2, h/2/2, w/2, h/13, Color(255,255,255,255))
  12.         draw.RoundedBox( 1, w/2/2+5, h/2/2+5, w/2-10-gay, h/13-10, Color(255,0,0,255))
  13.         draw.DrawText( "server reload : "..math.ceil(str), "cc",w/2, h/2/2, Color(0,0,0,255),1)
  14.     end)
  15. end
  16.  
  17. if CLIENT then
  18.     hook.Add("Think", "test", function()
  19.         str = math.Clamp(set+(get-CurTime()),0,set)
  20.        
  21.         if(math.ceil(str) == 0)then RunConsoleCommand( "changelevel", game.GetMap() ) end
  22.     end)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment