SA-MP Forums Archive
How would someone add the time feature? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: How would someone add the time feature? (/showthread.php?tid=452330)



How would someone add the time feature? - aa14 - 21.07.2013

I want to add the time feature in my server like it displaying the time before the sentance/words. For example

[12:35am] Anthony_Richardson says: Hi world!

Does anyone know how to write the code for it? or a FS maybe? in the Eastern Standered time? -5 GMT


Re: How would someone add the time feature? - Potassium - 21.07.2013

That's a client-sided command, type /timestamp on any server and it will appear for you.


AW: How would someone add the time feature? - [AK]Nazgul - 21.07.2013

If you want it to be a custom script, you could also use the gettime() function. Take a look at the gl_realtime filterscript to see how it's done.