Forum

> > CS2D > Scripts > 30 Min Restart + Hud
Forums overviewCS2D overview Scripts overviewLog in to reply

English 30 Min Restart + Hud

2 replies
To the start Previous 1 Next To the start

old 30 Min Restart + Hud

TheTrollHammer
BANNED Off Offline

Quote
Hello there..

I need help..

I Made this every 30 min restart, but i also need a hud that shows how many minutes remaining until it restarts..
Spoiler >

I Tried making one, but it confuses me..

Can you help me?

Thanks.

old Re: 30 Min Restart + Hud

Cure Pikachu
User Off Offline

Quote
Instead of doing a count-up, do a count-down, it would be easier.
1
2
3
4
5
6
7
8
9
10
minleft = 30
addhook("minute","res")
function res()
	minleft = minleft - 1
	parse("hudtxt 1 \"©000255000Minutes Remaining: "..minleft.."\" 356 458 1")
	if minleft == 0 then
		parse("restart 5")
		minleft = 30
	end
end

old Re: 30 Min Restart + Hud

TheTrollHammer
BANNED Off Offline

Quote
Thank you pikachu.

EDIT:

Can someone please edit the script pikachu made and make the HUD show while its 30 minutes? because when the server starts the script shows nothing, but after a minute it will show the HUD with 29 Minutes Remaining...
edited 1×, last 27.08.11 10:28:55 am
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview