Update! Sync Player Time -
Jonny5 - 19.04.2012
Update!- Not using Y_Hooks anymore
- Optional 12 hour time format
- Converted to an Include
- Options for the color/outline size of the time Texdraw
Okay today i give you a simple filterscript that will sync all players time.
It uses a textdraw to show the time.
Now this filter script can work in 2 different ways
First way:
You can sync all players time with your servers time,
one (in game) minute = one real minute.
Second way:
You can sync all the players time but like in single player mode
1 (in game minute) = 1 real world second.
To have way one uncomment
for way 2
pawn Код:
//#define SYNC_SERVER_TIME
TimeFormat Options:
Just uncomment to use 12 hour time format, if commented it will use 24 Hour time format.
pawn Код:
//#define USA_TIME_FORMAT
enjoy.
Include -
Latest Version Using ALS Hooks
FilterScript -
Old Version Using Y_HOOKS
Credits to
Twisted_Insane : this filterscript was a request he had.
Re: Sync Player Time -
Spooky - 19.04.2012
Good Work!
Re: Sync Player Time -
Twisted_Insane - 19.04.2012
Thank you bro, I'm glad you wasted your time for creatin' this FS for me!
Re: Sync Player Time -
Jonny5 - 06.05.2012
I have updated this code a bit,
removed y_hooks, added a few options and made it an include
to get away from the Textdraw Id problems.
more in the main post.
regards,
Re: Sync Player Time -
Twisted_Insane - 06.05.2012
Looks pretty good and useful, though I still didn't download it...Thanks for this again, Jonny!
Re: Sync Player Time -
Jonny5 - 06.05.2012
just wondering why your not using it?
Not a big deal, lol ..
did it not do what you requested? is their something I can change in it for ya?
Or is it just not needed anymore.
Dont matter as I use it so was worth the build.
regards,
Re: Sync Player Time -
Cheesus - 28.08.2012
Just what i was looking for!
~ Thanks
Re: Sync Player Time -
BGTrucker - 15.03.2014
Sorry for bumping but how to make the weather changeable if I use mode 2-not the real life server time,but the one that syncs the clock for all players?Whenever I open SAMP client,and click on my server,it always says Weather 10,and whenever I go ingame its always sunny(at day),and the weather doesnt change at all.No rain,no fog,no sandstorms,no nothing.