Is there any chance to make script like that: After CT or T win sound starts to play. It's will be very helpful for me cause I saw it at 1.6 and Source but I can't find it in 2d. If someone can do it for me I will be grateful.
Forum
CS2D General Need a scriptNeed a script
8 replies 1
Is there any chance to make script like that: After CT or T win sound starts to play. It's will be very helpful for me cause I saw it at 1.6 and Source but I can't find it in 2d. If someone can do it for me I will be grateful.
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("endround","playsound") function playsound() talive = player(0,"team1living") if (#talive == 0) then parse("sv_sound sfx/fun/ctwin.wav") else parse("sv_sound sfx/fun/twin.wav") end end
Only thing you need to do is create some nice sounds
//NOTE: only works in standard. If you need it for construction just let me know. I never play zombies so I don't know about that
I tried everything and it doesn't work I try to change music to restart game. Is this really good code or is here something wrong.
Triple H has written
It doesn't work or I do something wrong.
I tried everything and it doesn't work I try to change music to restart game. Is this really good code or is here something wrong.
I tried everything and it doesn't work I try to change music to restart game. Is this really good code or is here something wrong.
change
talive = player(0,"team1living")
to
talive = #player(0,"team1living")
/edit: Srry didnt see that he did the #talive already lool!, Tell us the error
1