Forum

> > CS2D > Scripts > play sound when s.o. says s.th.
Forums overviewCS2D overview Scripts overviewLog in to reply

English play sound when s.o. says s.th.

7 replies
To the start Previous 1 Next To the start

old play sound when s.o. says s.th.

Bobakrome
User Off Offline

Quote
I need an Script (addhook script) when u say.... eg. : blue / then play sfx/blue.ogg... can someone help? something like:
Spoiler >

i think is easy to do... i tried to make but... fail

Admin/mod comment

"Need Help At Lua Script" = stupid generic title. read the title guidelines next time! fixed!

old closed Re: play sound when s.o. says s.th.

Bobakrome
User Off Offline

Quote
idk what i tried, i dont have the hook that i tried but it don't worked
COME ON... HELP ME!
COME ON... HELP ME!
COME ON... HELP ME!
COME ON... HELP ME!
edited 2×, last 16.04.11 07:11:57 pm

Admin/mod comment

we don't behave like idiots in this forum and we don't tolerate spam

old Re: play sound when s.o. says s.th.

Bobakrome
User Off Offline

Quote
leonre4 has written
1
2
3
4
5
6
addhook("say","sayHook")
function sayHook(id,txt)
	if txt == "blue" then
		parse("sv_sound blue.ogg")
	end
end

ty

P.S: DC, sry for spamming....
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview