Advertisement
Bolodefchoco_LUAXML

[Function] system.sleep

Sep 25th, 2016
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. --Creator: Bolodefchoco
  2. --Made in: 25/09/2016
  3. --Last update: 25/09/2016
  4. --[[ Notes:
  5.     Does:
  6.         Pausa o sistema por time segundos
  7.     Args:
  8.         time --> Tempo em segundos para pausar o sistema
  9. ]]--
  10.  
  11. system = {}
  12. system.sleep = function(time)
  13.     local timer = os.time() + time
  14.     while timer > os.time() do
  15.     end
  16.     -- os.execute("ping localhost >nul -n "..time)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement