Process bar with a timer - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Process bar with a timer (
/showthread.php?tid=272480)
Process bar with a timer -
Supercop - 28.07.2011
Hello,
In my roleplay script I am implenting a point-system and I want that as soon a player types /capture and the timer starts to go (this is all scripted already), that a big processbar in the middle of the screen appears, which is full at the start but goes empty after 10 seconds.
Anybody who can help me?
Re: Process bar with a timer -
DRIFT_HUNTER - 28.07.2011
https://sampforum.blast.hk/showthread.php?tid=113443
Re: Process bar with a timer -
Supercop - 28.07.2011
Yes but I am talking about attaching a bar to a timer. For example: the time between typing /capture and the message you're trying to capture is 10 seconds, I want that in those 10 seconds the bar reaches from full to empty, and then disappears.
Re: Process bar with a timer -
Supercop - 30.07.2011
bump
Re: Process bar with a timer -
MadeMan - 30.07.2011
pawn Код:
SetProgressBarValue(barid, GetProgressBarValue(barid)+10);
Use it in a timer.