Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local T = 30
  2. local TT = 300
  3.  
  4. local function plycheck()
  5. //************************************************\\
  6.     if #player.GetAll() >=1 then
  7.         T = ( CurTime() + 30 );
  8.         if T != 0 then
  9.             for k,v in pairs(player.GetAll()) do
  10.             v:SetColor(0, 0, 0, 0);
  11. //          v:DrawModel( false );
  12.             end
  13.         else
  14.             TT = (CurTime() + 300);
  15.             for k,v in pairs(player.GetAll()) do
  16.             v:SetColor(255, 255, 255, 255);
  17. //          v:DrawModel( true );
  18.             end
  19.         end
  20.     else
  21.         T = 999
  22.         TT = 999
  23.     end
  24. end
  25. hook.Add("Think", "plycheck", plycheck)
  26.  
  27. local function roundstart()
  28.     draw.DrawText("Hiding Time: "..math.ceil(math.max(0,T - CurTime())), "Trebuchet18", 70, 5, Color(255,255,255,255))
  29.     draw.DrawText("Round Time: "..math.ceil(math.max(0,TT - CurTime())), "Trebuchet18", 180, 5, Color(255,255,255,255))
  30. end
  31. hook.Add("HUDPaint", "TimerPainting", roundstart)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement