Forum

> > CS2D > Scripts > Countdown
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Countdown

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben Countdown

DarkZBrine
User Off Offline

Zitieren
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 Kommentar

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

alt Re: Countdown

Raaj Nadar
User Off Offline

Zitieren
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.
1× editiert, zuletzt 09.01.15 16:21:57

alt Re: Countdown

Rainoth
Moderator Off Offline

Zitieren
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

alt Re: Countdown

Raaj Nadar
User Off Offline

Zitieren
Oh i was late i forgot to attach msg for countdown.
Check the 1st post.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht