[FS] Countup & Countdown Timers v3 [UPDATED] -
mascii - 14.03.2009
[FS] Countup & Countdown Timers v3
Description: simple countup and countdown timers
Commands: /count - brings up the main menu
Instructions: copy from pastebin, save and compile, add to filterscripts line
Код:
if you would like something to happen when the countdown timer has finished, edit line 219
219 // do somthing here if you want
220 // eg
221 // SetGravity(0.008)
222 SendClientMessageToAll(COLOR_GREY, "Times up!");
Screenshots:
![](/imageshack/img12/3366/21572610.png)
Position 1
![](/imageshack/img19/3246/53142415.png)
Position 2
Download:
http://pastebin.com/f35b98bfe v3
http://pastebin.com/f54e5eea2 v2
http://pastebin.com/f1c03995e v1
please leave comments
Re: [FS] Countup & Countdown timers -
Weirdosport - 14.03.2009
Quote:
Originally Posted by mascii
Код:
edit your desired countdown time in three places
|
I'm not quite sure that's a selling point. Only having to change 1 set of variables would surely be easier than having to hunt down and change 3?
Re: [FS] Countup & Countdown timers -
mascii - 14.03.2009
Quote:
Originally Posted by Weirdosport
Quote:
Originally Posted by mascii
Код:
edit your desired countdown time in three places
|
I'm not quite sure that's a selling point. Only having to change 1 set of variables would surely be easier than having to hunt down and change 3?
|
Yeahs ill try release an update, im new to scripting, maybe ill make it an ingame command to set the countdown time
Re: [FS] Countup & Countdown timers -
Weirdosport - 14.03.2009
Quote:
Originally Posted by mascii
Quote:
Originally Posted by Weirdosport
Quote:
Originally Posted by mascii
Код:
edit your desired countdown time in three places
|
I'm not quite sure that's a selling point. Only having to change 1 set of variables would surely be easier than having to hunt down and change 3?
|
Yeahs ill try release an update, im new to scripting, maybe ill make it an ingame command to set the countdown time
|
Well you'll need to use either strtok of sscanf. It is preferable to use sscanf, as it's faster and uses less processing power (and I feel it's alot easier to use aswell!)
Re: [FS] Countup & Countdown timers -
mascii - 14.03.2009
thanks for the tip, i have some idea of how to use strtok, but sscanf i have never heard before, ill look into it
Re: [FS] Countup & Countdown timers -
Weirdosport - 15.03.2009
Pointing you in the right direction:
Usage of sscanf
"Latest copy" of sscanf
Re: [FS] Countup & Countdown timers -
mascii - 15.03.2009
Quote:
Originally Posted by Weirdosport
|
thanks, ill use in my next project
v2 updated, see first post
Re: [FS] Countup & Countdown Timers v2 [UPDATED] -
GTA_Rules - 15.03.2009
![Shocked](images/smilies/surprised.gif)
looks great
Re: [FS] Countup & Countdown Timers v2 [UPDATED] -
Weirdosport - 15.03.2009
Looks good, the main thing I have to comment on is the list of times for the count down. It looks weird having each time listed twice, maybe a sub menu is needed to choose between pos 1 and 2, and then in each one there are times.. like:
Re: [FS] Countup & Countdown Timers v2 [UPDATED] -
mascii - 15.03.2009
yeah, does look a bit messy
i may update
thanks for feedback
edit:
updated to v3
see first post