[FilterScript] Sync Player Time
#1

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
pawn Код:
#define SYNC_SERVER_TIME
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.
Reply
#2

Good Work!
Reply
#3

Thank you bro, I'm glad you wasted your time for creatin' this FS for me!
Reply
#4

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,
Reply
#5

Looks pretty good and useful, though I still didn't download it...Thanks for this again, Jonny!
Reply
#6

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,
Reply
#7

Just what i was looking for!

~ Thanks
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)