Forum

> > CS2D > General > Need a script
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Need a script

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt geschlossen Need a script

Triple H
User Off Offline

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

alt Re: Need a script

DannyDeth
User Off Offline

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

alt Re: Need a script

Banaan
User Off Offline

Zitieren
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

alt Re: Need a script

Triple H
User Off Offline

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

alt Re: Need a script

HaRe
User Off Offline

Zitieren
Triple H hat geschrieben
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

alt Re: Need a script

DannyDeth
User Off Offline

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