Forum
Scripts
Who can create the script?
Who can create the script?
7 replies
1

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
_Lima_ has writtenIt 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 06:24:19 am
sv_soundpos I suppose.
1

Offline