Advertisement
szymski

Untitled

Mar 13th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. AddCSLuaFile()
  2. local Curtime = 0
  3. net.Receive("timerInterGalactique", function() Curtime = net.ReadFloat()
  4. end)
  5. local function timerintergalactique()
  6. TIMERGALACTIQUE = {}
  7. local bitch = TIMERGALACTIQUE
  8. bitch.timer = Curtime + 3600
  9. if bitch.timer >= CurTime() then
  10. bitch.checkthevalues = bitch.timer -CurTime()
  11. bitch.checkthevalues = math.Round(bitch.checkthevalues)
  12. bitch.checkthevalues = string.ToMinutesSeconds(bitch.checkthevalues)
  13. draw.RoundedBox(0,ScrW() -500, 10 ,500-10,100-10, Color( 240,100,20, 200))
  14. draw.RoundedBox(0,ScrW() -500, 10 ,500-10, 20, Color( 157, 62, 12))
  15. draw.SimpleText("Vous avez "..bitch.checkthevalues.. " avant la Guerre Intergalactique !","Trebuchet24",(ScrW()/2)+700,ScrH()/2 -490,Color(255,255,255), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  16.  
  17. else
  18. draw.RoundedBox(0,ScrW() -500, 10 ,500-10,100-10, Color( 250,90,10, 200))
  19. draw.RoundedBox(0,ScrW() -500, 10 ,500-10, 20, Color( 167, 52, 02))
  20. draw.SimpleText("GUERRE INTERGALACTIQUE EN COURS !","CloseCaption_BoldItalic",(ScrW()/2)+700,ScrH()/2 -490,Color(42,50,42), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER)
  21. timer.Simple(600, function() Curtime = CurTime() end )
  22. end
  23. end
  24. hook.Add("HUDPaint","testingmynewaddong", timerintergalactique)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement