Forum

> > CS2D > Scripts > If Team wins then
Forums overviewCS2D overview Scripts overviewLog in to reply

English If Team wins then

2 replies
To the start Previous 1 Next To the start

old If Team wins then

Cons
User Off Offline

Quote
Guys, i know this may be really easy, But i dont know , and i am here to learn...

So please, when team 1 wins the round then: My Action Will Work

And If Team 2 Wins the round then my other Action Will Work

please

old Re: If Team wins then

EngiN33R
Moderator Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("endround","teamwin")
function teamwin(mode)
	if mode==1 then
		--Terrorists won, do stuff
	elseif mode==2 then
		--CT won, do stuff
	end
end

old Re: If Team wins then

Cons
User Off Offline

Quote
user EngiN33R has written
1
2
3
4
5
6
7
8
addhook("endround","teamwin")
function teamwin(mode)
	if mode==1 then
		--Terrorists won, do stuff
	elseif mode==2 then
		--CT won, do stuff
	end
end


Thanks Again
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview