Timestamp in certain 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: Timestamp in certain time (
/showthread.php?tid=661095)
Timestamp in certain time -
GospodinX - 22.11.2018
Hi guys,
Is possible to make something like this(I'm try to search plugin/include with which I can do this,but unsuccessfully.
For example:
Mayor(RP server) get dialog where he can pick time when want that some "event" start(Auction,RP Events etc)
Quote:
Monday 20:00
Tueseday 20:00
Wednesday 20:00
Thursday 20:00
Friday 20:00
Saturday 20:00
Sunday 20:00
|
Or maybe,if today is 22.11,he get
Quote:
23.11 20:00
24.11 20:00
25.11 20:00
26.11 20:00
27.11 20:00
28.11 20:00
|
And I want to get from this time in timestamp if it's possible.
Or if you have any other "suggestion" how I can make that he can pick time which he want.
I know that I can make this:
variable = gettime() + 86400
But with this i will get 23.11.2018 in 09:51 ..But i want that it start in certain time(20h,21h etc not in random time)
I hope you can understand me.
Re: Timestamp in certain time -
Runn3R - 22.11.2018
https://sampforum.blast.hk/showthread.php?tid=254915