VIP with time - 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: VIP with time (
/showthread.php?tid=444573)
VIP with time -
Broker - 17.06.2013
hello guys, how to make vip with time.. example: 1 month, 1 year.. and save it with .ini
my friend tell me use timestamp. but, i dont know how to make it.. please help me !!!!
Re: VIP with time -
Isolated - 17.06.2013
UNIX Timestamp. ****** it. If you still cannot work it out, use a pre-released script.
Re: VIP with time -
AldoT - 17.06.2013
man try to use SetTimer("VIPTime", How Much time want, 1);
Re: VIP with time -
Jeffry - 17.06.2013
Quote:
Originally Posted by AldoT
man try to use SetTimer("VIPTime", How Much time want, 1);
|
Yes, it is such a great idea to set a timer for 1 YEAR!
Anyway.
First of all you need a stats-system, where you store the players stats. You can either make your own one, or use a pre-made one, that doesn't matter. Once you got this, you can easily check the playtime of any user, and activate their VIP once the wanted time is reached.
Here, you have to use SetTimer for sure, but you'll need a timer which checks ~each minute, if one of the online players passed the playtime of X hours.