09.01.2015, 18:32
How to make inactivity system who detect player last time on server,and if player not on server 2 months script delete his account or something else from users.ini file..
1) Why? Is their diskspace a problem? The only reason I've heard for this is to release owner properties and vehicles but this can be done without wiping out player accounts, then if they come back they can be informed of their loss of property.
2) I'd use a CRON job to do this, not do it from PAWN directly. 3) To say more on how to do it would require far more information about your user system - currently there's nothing to go on with regards to how you even store their last login date. |
1) Why? Is their diskspace a problem? The only reason I've heard for this is to release owner properties and vehicles but this can be done without wiping out player accounts, then if they come back they can be informed of their loss of property.
2) I'd use a CRON job to do this, not do it from PAWN directly. 3) To say more on how to do it would require far more information about your user system - currently there's nothing to go on with regards to how you even store their last login date. |
The cron job suggestion was just a suggestion based on my other point - that there was no information on HOW the house system is set up. Your suggestion on how to do it while shooting down the alternates makes huge assumptions about how the code is written, assumptions that you simply can't make. To say that my idea would not work while yours would is at the very least misleading. IF all the house data is in one file and IF it is all loaded in to memory at once, then your idea will work better, but despite me requesting additional code there is no evidence either way.
|
The cron job suggestion was just a suggestion based on my other point - that there was no information on HOW the house system is set up. Your suggestion on how to do it while shooting down the alternates makes huge assumptions about how the code is written, assumptions that you simply can't make. To say that my idea would not work while yours would is at the very least misleading. IF all the house data is in one file and IF it is all loaded in to memory at once, then your idea will work better, but despite me requesting additional code there is no evidence either way.
|