Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Who can create the script?
7 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- Some parts are hidden to save space if sample==nil then sample={} end sample.sayfuncs={} addhook("say","sample.sayfuncs.say") function sample.sayfuncs.say(p,txt) 	-- Some code lies here 	 	-- SOUND: That's the way I like it 	if (txt=="the way") then parse("sv_sound \"fun/thats_the_way.wav\""); end 	-- SOUND: Okay let's go 	if (txt=="lets go") then parse("sv_sound \"hostage/hos2.wav\""); end 	-- SOUND: Buaraarahahrahrrrr harr! 	if (txt=="zombies!") then parse("sv_sound \"player/zm_spray.wav\""); end 	-- SOUND: Mystery 	if (txt=="mystery") then parse("sv_sound \"env/mystery.wav\""); end 	 end
![user](img/i_friend.png)
It fits, but it triggers sound everywhere. And I need only next to the player that I wrote. Is it possible to do this?
Yes
edited 1×, last 17.08.18 08:24:19 am
![](img/smiles/ugly.gif)
![cs2d cmd](img/i_codehelp.png)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)