Forum

> > CS2D > Scripts > Is there any comands to make win for teams?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Is there any comands to make win for teams?

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

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

TimeQuesT
User Off Offline

Zitieren
@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.
1× editiert, zuletzt 07.03.11 22:29:52

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

TimeQuesT
User Off Offline

Zitieren
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)

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

Kiffer-Opa
User Off Offline

Zitieren
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.

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

Yates
Reviewer Off Offline

Zitieren
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

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

Syph
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht