Forum

> > CS2D > Scripts > Countdown
Forums overviewCS2D overview Scripts overviewLog in to reply

English Countdown

3 replies
To the start Previous 1 Next To the start

moved Countdown

DarkZBrine
User Off Offline

Quote
Hi guys how to make a zm countdown like a zm plague? , because i need that for ze script (i saw like this thread last year can't find it) can some one help? can't do it where to start XD.

Admin/mod comment

Please try to choose the right sub forum when creating new threads (scripts in this case). Moved. /DC

old Re: Countdown

Raaj Nadar
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("second","whatever")
function whatever()
         times = times - 1
         if times > 0 then
                 msg("Time left : "..times)
         elseif times == 0 then
                 msg("Nemesis chosen")
         end
end

addkook("startround","reset")
function reset()
         times = 10 -- change to you countdown max no.
end

Sorry if any error and no tabbing i posted from phone.
× not tested.
edited 1×, last 09.01.15 04:21:57 pm

old Re: Countdown

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
times = 10

addhook("second","whatever")
function whatever()
	if times and times > 0 then
		times = times - 1
	elseif times == 0 then
		msg("Countdown ended. Yey ~@C")
		times = nil
	end
end

addkook("startround","reset")
function reset()
	times = 10
end

old Re: Countdown

Raaj Nadar
User Off Offline

Quote
Oh i was late i forgot to attach msg for countdown.
Check the 1st post.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview