Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] How to make clock system?

 
  • 0 Vote(s) - 0 Average
Pawn How to make clock system?
Turk
Offline

Burgershot Member
Posts: 3
Threads: 2
Joined: Oct 2020
Reputation: 0
#1
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.
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#2
2020-11-11, 05:58 PM (This post was last modified: 2020-11-11, 05:59 PM by Pinch.)
https://wiki.open.mp/docs/scripting/functions/gettime
https://wiki.open.mp/docs/scripting/functions/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.
Turk
Offline

Burgershot Member
Posts: 3
Threads: 2
Joined: Oct 2020
Reputation: 0
#3
2020-11-11, 06:16 PM
(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)?
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#4
2020-11-11, 09:44 PM (This post was last modified: 2020-11-11, 09:48 PM by Pinch.)
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.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode