SA-MP Forums Archive
Timer of sort. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Timer of sort. (/showthread.php?tid=322602)



Timer of sort. - arathin - 02.03.2012

Alright so I've been here a few days on the forums and I would like to say I'm loving the community. Anyway What I'm here to ask is if anyone could simply point me in the right direction as to adding a timer to my server that shows up on the bottom right and says 5:00 when you start but counts down all the way to 0 and is global for all users so if you join after the new map starts your time will be the same as everyone else. For example if someone is ingame while the mode changes their time starts at 5 counts down to like 2:45 give or take and if a new player joins and spawns their time will be 2:45 not 5.


Re: Timer of sort. - Boooth - 03.03.2012

https://sampwiki.blast.hk/wiki/SetTimer


Re: Timer of sort. - arathin - 03.03.2012

Thanks testing it out now if it works +Rep


Re: Timer of sort. - arathin - 03.03.2012

Okay I tried it and It kinda helped but I need a visual timer on the screen to show up would I use a textdraw to do it?


Re: Timer of sort. - arathin - 03.03.2012

something like this if it helps


Re: Timer of sort. - arathin - 03.03.2012

Bump


Re: Timer of sort. - ColorHost-Kevin - 03.03.2012

Oh, thats the game timer... i dont think you can edit that to make it do a countdown.


But a countdown is possible.


Re: Timer of sort. - Guest9328472398472 - 03.03.2012

It's possible to make it countdown, but I'm not sure how...


Re: Timer of sort. - iTorran - 03.03.2012

Take a look at some clock filterscripts and see how they work.
Then do the same but reversed, so each time the callback is called it takes 1 off the variable therefore taking away 1 ig


Re: Timer of sort. - arathin - 03.03.2012

Alright thanks for the help btw if you happen to come across one point it my way please? Thanks guys