Forum

> > CS2D > General > Need a script
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Need a script

8 replies
To the start Previous 1 Next To the start

old closed Need a script

Triple H
User Off Offline

Quote
Hi.
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.

old Re: Need a script

DannyDeth
User Off Offline

Quote
Lol, have you seen the thread? Are you blind? It is right at the top of the forum index. Use that, don't post new threads for what should be in there.

old Re: Need a script

Banaan
User Off Offline

Quote
1
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

old Re: Need a script

Triple H
User Off Offline

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

old Re: Need a script

HaRe
User Off Offline

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


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

old Re: Need a script

DannyDeth
User Off Offline

Quote
Seriously this is supposed to go in the Lua help thread. Like, how many times has DC adn the mods told us NOT to make threads about this??? *Sigh*
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview