Forum

> > CS2D > Scripts > How do i create a Sound Spray
Forums overviewCS2D overview Scripts overviewLog in to reply

English How do i create a Sound Spray

4 replies
To the start Previous 1 Next To the start

old How do i create a Sound Spray

Kantos
BANNED Off Offline

Quote
when i worked on my spray sound


i need to fix this , the hook executed in server but when i Press "T" (Spray) its not executed the sound coin.wav
i need fix it , its execute the normal sound
i need to upload it , help me and i give u credits

1
2
3
4
addhook('spray','spray_hook')
if spray_hook then 
parse('sv_sound coin.wav')
end

[i]italic[i] Help me please and i give u credits on the script

old Re: How do i create a Sound Spray

Rainoth
Moderator Off Offline

Quote
1
2
3
4
addhook("spray","erm")
function erm(id)
	parse("sv_sound potato.ogg")
end

Italic/Bold/Underlined text is made by putting
[symbol]TEXT[/symbol]

symbols are i,b,u

// Though you can make it better. You should use ID parameter to make the sound heard only for those who are near the player who sprays. But that's a bit more complicated for you I suppose.
edited 1×, last 03.01.14 12:50:53 am

old Thx You . Can i Change it

Kantos
BANNED Off Offline

Quote
user Rainoth has written
1
2
3
4
addhook("spray","erm")
function erm(id)
	parse("sv_sound potato.ogg")
end
user Rainoth has written
------------

Thanks you for this
but i can change the code like this

1
parse("sv_sound coin.wav")
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview