Forum

> > CS2D > Scripts > Message evry half minutes!
Forums overviewCS2D overview Scripts overviewLog in to reply

English Message evry half minutes!

2 replies
To the start Previous 1 Next To the start

old Message evry half minutes!

Suprise
BANNED Off Offline

Quote
And now I want to know or just write a script for me
So..
Server message every half minute!
Its possible?
Thanks in advance!

old Re: Message evry half minutes!

Cure Pikachu
User Off Offline

Quote
Try this sample.
1
2
3
4
5
6
7
8
9
secs = 0
addhook("second","autotext")
function autotext()
	secs = secs + 1
	if secs >= 30 then -- 1/2 a minute = 30 seconds, so yeah.
		msg("Test") -- Replace with whatever you like
		secs = 0
	end
end

old Re: Message evry half minutes!

Suprise
BANNED Off Offline

Quote
user Cure Pikachu has written
Try this sample.
1
2
3
4
5
6
7
8
9
secs = 0
addhook("second","autotext")
function autotext()
	secs = secs + 1
	if secs >= 30 then -- 1/2 a minute = 30 seconds, so yeah.
		msg("Test") -- Replace with whatever you like
		secs = 0
	end
end


Thanks! This is working.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview