Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. hook.Add("HUDPaint", "dt", function()  
  2.     if !LocalPlayer():Alive() then
  3.         LocalPlayer().DeathTime = CurTime()
  4.         if LocalPlayer().DeathTime and ( CurTime() - LocalPlayer().DeathTime ) < 30 then
  5.             local timeleft = 30 - ( CurTime() - LocalPlayer().DeathTime )
  6.             draw.SimpleText( timeleft .. " seconds left", "ScoreboardText", ScrW()/2, ScrH()/2 - 25, Color(255, 0, 0, 255))
  7.         end
  8.     end
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement