SA-MP Forums Archive
[FilterScript] Clock/Time system - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Clock/Time system (/showthread.php?tid=268961)



Clock/Time system - andruz99 - 14.07.2011

How this works
Clock/Time system starts at 12:00, textdraw will be shown after player spawns.
After every 1 minute +1 hour is added, you can also change that by changing timer time.
The textdraw will be also updated when time changes, and worldtime changes also with that, So the night and morning will come smoothly.
When the time get's to 23:00 then after that it will be 00:00, etc.. 01:00 and so on.
Basicly just night and day cycle, server time, not on your pc time or something like that.

Why i made this filterscript
I decided to make this filterscript, because almost every clock/time system is based on Computer time, and that sucks, a lot of people have asked from me to make server based time, not on computer based time system, so i made.
Hope you guys like it. You can edit it freely, but not publish it on somewhere without my permissions, or naming as it your's.


Oh and i also translated from Estonian(My country language) languaeg into English, because sa:mp community is based on English language.


Downloads
UPDATED:

Pastebin: http://pastebin.com/Gi3ZRcSk
Mediafire:http://www.mediafire.com/?jh6nb36weusaesu

Update: forgot few things to add

If you need more links, ask me


Re: Clock/Time system - Ronaldo_raulâ„¢ - 14.07.2011

nice gonna test it!


Re: Clock/Time system - Rock_Ro - 14.07.2011

Are you sure that textdraw will appear ? Where is textdraw code


Re: Clock/Time system - andruz99 - 14.07.2011

Ooh sorry , i had this on my gm, took it out, forgot it was on OnPlayeSpawn , il edit n add it again.


EDIT: UPDATED, at pastebin, onplayerspawn, with textdraw showing was missing , Thanks for telling.


Gonna update other links also.


Re: Clock/Time system - Rock_Ro - 14.07.2011

Yeah...but...
Where's TEXTDRAW CODE, it should be under OnFilterScriptInit...you know...TextDrawCreate...


Re: Clock/Time system - andruz99 - 14.07.2011

ooh lol, , wait im gonna fix it also, forgot about that , thnx again

EDIT: added, should be fine now, updated links also, and pastebin.


Re: Clock/Time system - Rock_Ro - 14.07.2011

Lol xD

Great, good job


Re: Clock/Time system - andruz99 - 14.07.2011

Thanks


Re: Clock/Time system - Ehab1911 - 14.07.2011

Wow man awesome <3, Gonna install it!


Re: Clock/Time system - System64 - 14.07.2011

one question, I didn't understand somethnig

when player connect time will be 12, ig he connect 30 minutes later will time again be 12 or 12:30 ?

I mean, when player disconnect will time reset for him?