So trying to find help to do this one easy script! I would like to have a sound coming when they either lose or win the round. Not the ''Counter terrorists win!'' Or vice versa~ I mean one for the losing team and one for winning team. Would be better & appreciate if u could have couple sounds for losers and couple for winners. Going in a random order? Well ill put MAIN which have to be on and if possible add the other too! NO LOOP! ~
And something more. When i press a button, could it mixteams? or if it could be added on the same script by saying like @mixteams. But i like more only pressing a button and it would mixteams!
I use Tlex, just informing if it would cause any problems?
(All on sfx/) If u need this; For losing team sound called cheater.ogg <--MAIN , no.ogg and For winning team feelgood.wav , thatstheway.wav <-- MAIN , this is sparta.wav ... Would appreciate if someone would postthe script here & Where to put it
EDIT:-----------------------------------
Ive found something like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
addhook("endround", "end_of_round") function ctwin() a = math.random(1,6) parse(string.format("sv_sound \"misc/win%d.ogg\"", a)) end function twin() a = math.random(1,6) parse(string.format("sv_sound \"misc/win%d.ogg\"", a)) end function end_of_round(mode) if mode==1 then --Regular T win twin() elseif mode==2 then --Regular CT win ctwin() elseif mode==3 then --Round draw elseif mode==4 then --Game commencing elseif mode==10 then --VIP assassinated; T win twin() elseif mode==11 then --VIP escaped; CT win ctwin() elseif mode==12 then --VIP did not escape; T win twin() elseif mode==20 then --Bomb exploded; T win twin() elseif mode==21 then --Bomb defused; CT win ctwin() elseif mode==22 then --Failed to plant the bomb in specified time; CT win ctwin() elseif mode==30 then --Failed to rescue hostages in specified time; T win twin() elseif mode==31 then --All hostages rescued; CT win ctwin() elseif mode==40 then --Blue flag captured; T win twin() elseif mode==41 then --Red flag captured; CT win ctwin() elseif mode==50 then --All points dominated; T win twin() elseif mode==51 then --All points dominated; CT win ctwin() elseif mode==60 then --All humans infested; Zombies win elseif mode==61 then --Humans survived; Humans win end end
Whats wrong with that? It doesnt work for me. Ive choosed that lua for my server already and stuff but its the script.
parse(string.format("sv_sound \"misc/win%d.ogg\"", a)) Is it in that? Do i have to change it to C:/TheSoundFile.ogg\"", a)) ? What does that sv_sound mean in there? And why is the "", a)) in there? Can i took it off? Well enough questions. Now i need answers
edited 1×, last 19.05.12 02:11:36 pm