SA-MP Forums Archive
gettime() question/issue - 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: gettime() question/issue (/showthread.php?tid=532849)



gettime() question/issue - DamonD - 20.08.2014

Now, before, any-one jumps the gun and refers me to any threads I need to say that I am not asking for any scripts, I am just looking for an answer.

I am working on a temporary ban system. How-ever I greatly stumped with this one thing.

I am stuck on getting time values from/to the gettime function. I need the following thing's convertted IN-GAME DURING RUN-TIME as specified by the administrator performing the command,

* - Hour
* - Days
* - Years

Basically, I need to know how to convert those in-game during run-time to seconds that can be used by gettime().