Posts: 69
Threads: 10
Joined: Mar 2016
Reputation:
0
Hi yall. I've begun a House & Property System and i want to make it temporary.
A house or a property will be available 30 days. And in database i want to save this time/day.
How can I do?
Posts: 1,506
Threads: 13
Joined: Jun 2015
gettime and getday function.
U want it to last 30days in real life and after 30days ( Month ) Delete the ownership from the house?
Posts: 69
Threads: 10
Joined: Mar 2016
Reputation:
0
Yes, after 30 days valability, the house must be automatically sold by the server.
I have already tried something such as: "House[houseid][Update] = gettime() + 60*60*24", but. It didn't work...
Posts: 69
Threads: 10
Joined: Mar 2016
Reputation:
0
I was thinking to place that check when the house valability has been reached / exceeded when the player disconnects. 'Cuz some friends of mine told me that the timers can make lag...
But thanks for your help, I'm gonna try right now !
Posts: 1,506
Threads: 13
Joined: Jun 2015
Timers can cause lag if you use a lot of timers with a lot of shit in each of them.