open.mp forum
[Pawn] How to make clock system? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] How to make clock system? (/showthread.php?tid=1339)



How to make clock system? - Turk - 2020-11-11

Hello, is there any samp clock filterscript or something? Maybie anyone could give an idea how to make it? I'm looking for basic real time clock with textdraws and changing weather.


RE: How to make clock system? - Pinch - 2020-11-11

https://wiki.open.mp/docs/scripting/functions/gettime
https://wiki.open.mp/docs/scripting/functions/SetWeather

If I understood you correctly idk


RE: How to make clock system? - Turk - 2020-11-11

(2020-11-11, 05:58 PM)Pinch Wrote: https://wiki.open.mp/docs/scripting/functions/gettime

https://wiki.open.mp/docs/scripting/functions/SetWeather



If I understood you correctly idk



Thanks but how can I check for example when it is 18:00 so I can change the weather (As efficiently as possible, without puting much stress on the server)?


RE: How to make clock system? - Pinch - 2020-11-11

Are you sure that you want to change the weather for this clock system?

You probably want SetWorldTime(hour);
Create a timer and update it whenever you get the hour via gettime