SA-MP Forums Archive
Sleep function. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sleep function. (/showthread.php?tid=498312)



Sleep function. - audriuxxx - 02.03.2014

Hi,

How to create a sleep function which can slow down my server for my set time, no one can connect and so on... But what i need to do is that, no sync will be, but mysql queries will be finish.


Re: Sleep function. - MP2 - 03.03.2014

Firstly, why would you want to do that? Secondly, PAWN runs on a single thread, so you can't have the server sleeping and still be able to process mySQL queries.


Re: Sleep function. - Scenario - 03.03.2014

I agree with MP2- what the hell is the point? If anything, you could make a command to lock the server via a password or something and set a timer for a certain amount of seconds/minutes/hours/days and then once that timer hits, unlock the server.