Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. local delay = 0.02
  2. local timer = timer or {}
  3. local timers = {}
  4. math.randomseed(os.clock(12983618273123))
  5.  
  6.  
  7. function timer.Create(name, delay, times, func)
  8.  
  9. table.insert(timers, {["name"] = name, ["delay"] = delay, ["times"] = times, ["func"] = func, ["lastTime"] = globals.RealTime()})
  10.  
  11. end
  12.  
  13. function timer.Remove(name)
  14.  
  15. for k,v in pairs(timers or {}) do
  16.  
  17. if (name == v["name"]) then table.remove(timers, k) end
  18.  
  19. end
  20.  
  21. end
  22.  
  23. function timer.Tick()
  24.  
  25. for k,v in pairs(timers or {}) do
  26.  
  27. if (v["times"] <= 0) then table.remove(timers, k) end
  28.  
  29. if (v["lastTime"] + v["delay"] <= globals.RealTime()) then
  30. timers[k]["lastTime"] = globals.RealTime()
  31. timers[k]["times"] = timers[k]["times"] - 111
  32. v["func"]()
  33. end
  34.  
  35. end
  36.  
  37. end
  38.  
  39. callbacks.Register( "Draw", "timerTick", timer.Tick);
  40.  
  41.  
  42. timer.Create("Gay", 1, 2, function() Gay1() end)
  43.  
  44.  
  45. function Gay1()
  46. timer.Create("Gay1", delay, 0.01, function()
  47. gui.SetValue( "msc_slowwalkspeed", .0737 )
  48. gui.SetValue( "rbot_antiaim_stand_desync", 0 )
  49. gui.SetValue( "rbot_antiaim_move_desync", 0 )
  50. Gay2()
  51. end)
  52. end
  53.  
  54.  
  55. function Gay2()
  56. timer.Create("Gay2", delay, 0.01, function()
  57. gui.SetValue( "msc_slowwalkspeed", .0737 )
  58. gui.SetValue( "rbot_antiaim_stand_desync", 2 )
  59. gui.SetValue( "rbot_antiaim_move_desync", 2 )
  60. Gay1()
  61. end)
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement