• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How to make clock system?
#1
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.
  Reply
#2
https://wiki.open.mp/docs/scripting/functions/gettime
https://wiki.open.mp/docs/scripting/func...SetWeather

If I understood you correctly idk
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply
#3
(2020-11-11, 05:58 PM)Pinch Wrote: https://wiki.open.mp/docs/scripting/functions/gettime

https://wiki.open.mp/docs/scripting/func...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)?
  Reply
#4
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
Using Pawn.CMD?

If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
  Reply


Forum Jump: