How to call a function once a day?

Well, that’s pretty much it, how to call a function only once each day. For example, someone connects and is on usergroup donator, and something happens.

If you could add some notes on how to modify it, i would thank you a lot.

Call os.time and save the value (to an sqldb or a file in the data directory, preferrably sql). Then check if the saved value is greater than 606024 every now and then. If it is call your function and then set the value to the current os.time and save it again.

-snip- Above