Run function in Hours
#4

Quote:
Originally Posted by Sgt.TheDarkness
Посмотреть сообщение
Use gettickcount, store and have it run every 24 hours, that should solve your problem. You'll have to put the function under a timer however.

Or you could make a timer to execute every 24 hours to execute that code for online players, as far as offline goes, you might want to avoid that, since an offline player can't really pay their taxes if they aren't online.
I understand, I managed to make the function work only for those who are online, but it did not work for those who just bought the house and left the server. So I needed to make one that counts the taxes at such a time, so Online / Offline players will also receive the tax, and if they accumulate 10 tax, the property automatically releases.
I was only able to do the tax count for anyone who is online.
Reply


Messages In This Thread
Run function in Hours - by Leonaardo - 05.11.2017, 20:16
Re: Run function in Hours - by Leonaardo - 06.11.2017, 01:38
Re: Run function in Hours - by Sgt.TheDarkness - 06.11.2017, 01:41
Re: Run function in Hours - by Leonaardo - 06.11.2017, 02:14

Forum Jump:


Users browsing this thread: 3 Guest(s)