SA-MP Forums Archive
Dynamic watch? - 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: Dynamic watch? (/showthread.php?tid=633432)



Dynamic watch? - Oficer - 30.04.2017

Hello Brothers, I have a little problem - How create watch with the current time, as a object.
for example > https://www.youtube.com/watch?v=wk3z6u4_zAk


Re: Dynamic watch? - Sebz - 30.04.2017

https://sampwiki.blast.hk/wiki/SetObjectMaterialText

You'll need to have the unix timestamps set up already in order to pass them into this though.


Re: Dynamic watch? - Oficer - 02.05.2017

I created object and text, but I don't know how, set up time for this.

Quote:

new watch;
new time;
watch = CreateDynamicObject(7709, 2047.859252, 1338.117919, 11.681878, 0.000000, 0.000000, 88.599945, -1, -1, -1, 300.00, 300.00);
SetDynamicObjectMaterialText(watch, 0, "None", 10, "Ariel", 20, 0, 0x00000000, 0x00111111, 0);
time = CreateDynamicObject(7709, 2048.705078, 1338.051391, 11.231875, 0.000000, 0.000000, 88.099929, -1, -1, -1, 300.00, 300.00);
SetDynamicObjectMaterialText(time, 0, "TEXT", 60, "Ariel", 35, 0, 0xFFFFFFFF, 0x00000000, 0);




Re: Dynamic watch? - Oficer - 03.05.2017

Anyone can help ? :/