How can I add a wait time limit. For example I'm used to the "intsleep ( int $seconds )" functions in php. I don't know how to do something like this in plugins //run code wait time limit here //run this code after time is up
Make a schedule. In PHP structure, this code: PHP: Some_code();Some_else_code();Some_more_code(); Between some_code() and some_more_code(), whatever you put in for some_else_code(), it must be the code inside some_else_code() that is run and nothing else inside that thread. This means, you cannot call a function to reserve the later code to be run later unless you pause the server (sleep()). But that will hibernate the whole server and clients will think that the server has closed/crashed instead.