SA-MP Forums Archive
Time script - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Time script (/showthread.php?tid=262902)



Time script - sim_sima - 19.06.2011

Hey guys.
Im gonna make a time script for my server. You know, where 1 hour in-game is like 2 seconds irl.
I know its easy to make, its just a timer and a textfraw. But which way is the easiest?


Re: Time script - Backwardsman97 - 19.06.2011

Most of the time there's no textdraw. It's just the default SetWorldTime. You have to enable the clock on gamemodeinit and then use a repeating timer to keep track of minutes, seconds, etc.


Re: Time script - sim_sima - 20.06.2011

Yea, and then make a textdraw showing the value of the time etc.


Re: Time script - PCheriyan007 - 20.06.2011

https://sampwiki.blast.hk/wiki/TogglePlayerClock
look at the example here and edit it to a textdraw.


Re: Time script - sim_sima - 20.06.2011

I already made one, it works just great.


Re: Time script - sim_sima - 20.06.2011

Quote:
Originally Posted by PCheriyan007
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/TogglePlayerClock
look at the example here and edit it to a textdraw.
I prefer SetWorldTime in stead. Anyways, thanks for your help.


Re: Time script - Madsen - 26.06.2011

Quote:
Originally Posted by sim_sima
Посмотреть сообщение
I prefer SetWorldTime in stead. Anyways, thanks for your help.
you prefer being a b8by


Re: Time script - Steven82 - 26.06.2011

Quote:
Originally Posted by Madsen
Посмотреть сообщение
you prefer being a b8by
I'm sorry, but...i don't think this refers with anything to do with this topic. So why don't you quit being a n00b(yeah i can type like that too) and quit acting like a badass.


Re: Time script - sim_sima - 26.06.2011

Quote:
Originally Posted by Steven82
Посмотреть сообщение
I'm sorry, but...i don't think this refers with anything to do with this topic. So why don't you quit being a n00b(yeah i can type like that too) and quit acting like a badass.
I know him in real life, he is just making fun, cus i already solved the time thng