2020-11-11, 05:56 PM
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.
[Pawn] How to make clock system?
|
2020-11-11, 05:56 PM
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.
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.
2020-11-11, 06:16 PM
(2020-11-11, 05:58 PM)Pinch Wrote: https://wiki.open.mp/docs/scripting/functions/gettime 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)?
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. |