SA-MP Forums Archive
auto account delete - 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)
+--- Thread: auto account delete (/showthread.php?tid=490657)



auto account delete - aboa - 27.01.2014

How I can make auto account delete if playere didn't logged in for 30 days


Re: auto account delete - aboa - 28.01.2014

?


Re: auto account delete - Vince - 28.01.2014

What saving system are you using? For SQL based systems, add a field with their last login if you haven't already. When the server starts (or perhaps on a cron job?), execute a query to delete accounts.

I don't think it's possible with a file based system, at least not through Pawn scripting. You'd need to retrieve the 'last modified' date and use it in a shell script.