Forum

> > CS2D > Scripts > Is there any comands to make win for teams?
Forums overviewCS2D overview Scripts overviewLog in to reply

English Is there any comands to make win for teams?

13 replies
To the start Previous 1 Next To the start

old Re: Is there any comands to make win for teams?

TimeQuesT
User Off Offline

Quote
@FN_Linkin Park
what are you talking about!?
@Danikah
yes this will work.

-------------------------------------
the function "parse" will execute the command that is overgiven as "string" like the console.
edited 1×, last 07.03.11 10:29:52 pm

old Re: Is there any comands to make win for teams?

TimeQuesT
User Off Offline

Quote
yes that's right. I miss understood Fapicon.
The only way to make it looks like a win is restarting the round and sending a message that is centered.

example:
--restart
--ct won the round!!@C(centered)

old Re: Is there any comands to make win for teams?

Kiffer-Opa
User Off Offline

Quote
No, sorry, there is no native CS2D code for this.

Well, but it can be emulated in Lua:

1
2
3
4
5
6
7
8
9
-- the variable "winner" stores the number of the winning team. 1=T, 2=CT.
if(winner==1) then
parse("sv_msg Terrorists win!@C")
parse("sv_sound radio/terwin.wav")
elseif(winner==2) then
parse("sv_msg Counter-Terrorists win!@C")
parse("sv_sound radio/ctwin.wav")
end
parse("sv_roundrestart 5")

But unfortunately, it does just look like the team is winning. It is no perfect emulation. First, there appears a annoying message that the round will be restarted in 5 seconds which I can't remove. Second, the actual team score you see if you press [Tab] won't be changed.

old Re: Is there any comands to make win for teams?

Yates
Reviewer Off Offline

Quote
Well, yes you can do this.

Trigger_use
Name (none)
Trigger win

Gameaction (Don't remember the real name)
Name win
Trigger (none)
Action (Who will win, restart etc)

If you want to trigger it in any other way you can only use console if you are the admin. Otherwise you would need a script

old Re: Is there any comands to make win for teams?

Syph
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("parse","prs")
function prs(cmd)
if cmd=="t_win" then
parse("trigger terrorist_win")
return 1
end
if cmd=="ct_win" then
parse("trigger counterterrorist_win")
return 1
end
if cmd=="round_draw" then
parse("trigger round_draw")
return 1
end
end
just need to name the Game actios to the choosen up ^
i think that would help.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview