• start --> sleep --> stop
    4 replies, posted
Hello scripters i want to make a auto script but what code can i use to pause my script for 60 second like RunConsoleCommand("start") -- start the mod SLEEP(60); -- Sleep for another second RunConsoleCommand("Stop") -- stop the mod but i got a error attempt to call global 'SLEEP' (a nil valattempt to call global 'SLEEP' (a nil value)
timers
how to make a timer sorry i just start to day
There is no global function called SLEEP and that would block the rest of your scripts which would be bad. Look at [url]http://wiki.garrysmod.com/?title=Timer[/url] specifically timer.Create and timer.Simple
Sorry, you need to Log In to post a reply to this thread.