How to add a sound
#7

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Can I make the sound follow a vehicle? Like make my custom police siren?
Check out the wiki: https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer

You can see that there are optional parameters:
FloatosX = 0.0, FloatosY = 0.0, FloatosZ = 0.0, Float:distance = 50.0, usepos = 0
So if you want to "attach" the music to a player then you have to make a timer and update the position.
Well, the problem would be that everytime it would show the message again.
Reply


Messages In This Thread
How to add a sound - by AndreiWow - 01.01.2017, 20:28
Re: How to add a sound - by RyderX - 01.01.2017, 20:30
Re: How to add a sound - by GoldenLion - 01.01.2017, 20:37
Re: How to add a sound - by AndreiWow - 01.01.2017, 20:55
Re: How to add a sound - by GoldenLion - 01.01.2017, 20:59
Re: How to add a sound - by AndreiWow - 01.01.2017, 21:04
Re: How to add a sound - by SoLetsGO - 01.01.2017, 21:09
Re: How to add a sound - by iLearner - 01.01.2017, 21:55
Re: How to add a sound - by Spmn - 01.01.2017, 22:13
Re: How to add a sound - by AndreiWow - 02.01.2017, 09:22

Forum Jump:


Users browsing this thread: 2 Guest(s)