Auto house selling system based on inactivity
#1

Is there such a thing^^^.... It would help me with something im doing. Is there a script that allows you to sell someones house automatically if they are not active in game for X amount of days.

greetz
Reply
#2

Search for it. Although I don't think you'll find it. I'd never seen it before.
Reply
#3

Make a new function into the house system (like: hUsed) then update that function every hour and put +1 on it.
Then if a player logs in set he's house hUsed to 0, and in the same timer as you used to put +1 on the value of hUsed, check if the hUsed is higher then like 72 (72 hours = 3 days), then sell the house.

I used this a long time in my own house system script really usefull for players who are buying a house, and then not use it for days.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)