SA-MP Forums Archive
Auto house selling system based on inactivity - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Auto house selling system based on inactivity (/showthread.php?tid=76971)



Auto house selling system based on inactivity - xxjackoxx - 08.05.2009

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


Re: Auto house selling system based on inactivity - MenaceX^ - 08.05.2009

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


Re: Auto house selling system based on inactivity - Andom - 08.05.2009

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.