Forum

> > CS2D > Scripts > more messages
Forums overviewCS2D overview Scripts overviewLog in to reply

English more messages

2 replies
To the start Previous 1 Next To the start

old more messages

superpegamento
User Off Offline

Quote
hi guys, i need to have messages every 1m, 30s but these are not made at the same time

old Re: more messages

MortalS
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
tiempo= 0

addhook("second","Mensaje1")
function Mensaje1()
tiempo=tiempo+1
if tiempo==30 then
tiempo=0
msg("Write Your  Message/Coloque su mensaje")
end
end

addhook("second","Mensaje2")
function Mensaje2()
tiempo=tiempo+1
if tiempo==60 then
tiempo=0
msg("Write Your  Message/Coloque su mensaje")
end
end

No tested

old Re: more messages

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
time = 0

addhook("second","a")
function a()
	time = time + 1
	if time == 30 then
		msg("Message A")
	elseif time == 60 then
		msg("Message B")
	elseif time == 90 then
		msg("Message C")
		time = 0 -- will reset time
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview