Forum
Scripts
Is there any comands to make win for teams?
Is there any comands to make win for teams?
13 replies
1

Let me find it
Something with gameaction..
Edit: Lol, I searched but I think now it's only with map o.O
Fapicon has written
I mean when you type "ctwin" in console
As I see, every console command can be done with parse.
parse("ctwin") maybe?
edited 1×, last 07.03.11 09:29:47 pm
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 09:29:52 pm
lua parse("ctwin"); --> this will work
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)
Well, but it can be emulated in Lua:
1
2
3
4
5
6
7
8
9
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.
and trigger they ?
make a command to trigger it ?
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
i think that would help.
1

Offline