auto vip remove
#5

If you want to remove VIP automatically after 24 hours for example, you can simply get the current time when your player acquires his VIP status using gettime().
This will return a timestamp in seconds that have passed since january 1970 or so.
Just add 24*60*60 (= 86400) to that value to get the time his VIP status should end.

Then simply save that value when he disconnects and reload it when he logs in again.
And when he wants to use his VIP commands or whatever, just check if the current time is still lower than his VIP-time (if so, he still has VIP status).
Reply


Messages In This Thread
auto vip remove - by GeneralAref - 26.12.2015, 08:24
Re: auto vip remove - by $Marco$ - 26.12.2015, 14:02
Re: auto vip remove - by GeneralAref - 26.12.2015, 19:18
Re: auto vip remove - by SaltySandy - 26.12.2015, 19:28
Re: auto vip remove - by AmigaBlizzard - 26.12.2015, 22:57
Re: auto vip remove - by GeneralAref - 27.12.2015, 07:36
Re: auto vip remove - by Ritzy2K - 27.12.2015, 07:40
Re: auto vip remove - by GeneralAref - 27.12.2015, 09:29
Re: auto vip remove - by GeneralAref - 27.12.2015, 16:03
Re: auto vip remove - by GeneralAref - 27.12.2015, 17:49

Forum Jump:


Users browsing this thread: 2 Guest(s)