How can i make timer to progressbar? - 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)
+--- Thread: How can i make timer to progressbar? (
/showthread.php?tid=658710)
How can i make timer to progressbar? -
majmunko - 10.09.2018
Hi i have a 15min timer, how can i make him to show me progress bar?
Thanks
Re: How can i make timer to progressbar? -
Calisthenics - 10.09.2018
15 minutes is 900 seconds. It takes 9 seconds to increase (0% to 100%) or decrease (100% to 0%) by 1%
Declare a global variable and set a timer with interval of 9 seconds. In the callback of the timer, increase/decrease the variable and set the progress value.
Re: How can i make timer to progressbar? -
majmunko - 10.09.2018
i dont understand, im beginner
Re: How can i make timer to progressbar? -
majmunko - 11.09.2018
help meeee
Re: How can i make timer to progressbar? -
Undef1ned - 11.09.2018
Do you want me to show you the bar every 15 minutes?
Re: How can i make timer to progressbar? -
majmunko - 11.09.2018
No i want to make progress bar that will run with my timer. 15 mins, 14.13..
Re: How can i make timer to progressbar? -
Undef1ned - 11.09.2018
For that you must create a textdraw and fill it every 15 minutes, or to make it easier you can use some filterscripts to create progress bars.