Vincent Posted August 5, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share Posted August 5, 2013 Hi, how can i restart a script every X minutes? Quote Link to comment Share on other sites More sharing options...
Skorm Posted August 5, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: Sunday at 10:43 PM Share Posted August 5, 2013 Put minuteX: Where x is the minute you want the script to start on every hour. Or OnInit: OnTimerX: initnpctimer; Where X is the amount of milliseconds you want to wait before re-running the script. Oninit: <script> Sleep X; goto Oninit; Where X is the amount of time you want to wait between activations in milliseconds. You can do more things if a player is attached. 1 Quote Link to comment Share on other sites More sharing options...
Vincent Posted August 5, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Author Share Posted August 5, 2013 big thanks helps a lot Quote Link to comment Share on other sites More sharing options...
Question
Vincent
Hi,
how can i restart a script every X minutes?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.