SA-MP Forums Archive
Can you do this - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Can you do this (/showthread.php?tid=405547)



Can you do this - nickstar - 07.01.2013

Is it possible to attach a sound stream to a vehicle and it would stream sound to people around the vehicle?


Re: Can you do this - nickstar - 07.01.2013

Ok either no one likes to reply to my topic or no one knows because i have posted many topics about help for different things and i have had to figure out how to fix things by my self or figure out if i can do it by my self

this is just a thing i cant figure out this one if anyone knows if there is any way you can do this can you reply or if it cant be done.


Re: Can you do this - TheJayMan - 07.01.2013

Yes it is. I'd do it by setting the stream for the vehicle ID, then check if the vehicle ID has a stream for any passengers? Saw it on another server, assumed this is how they did it, could be wrong.


Re: Can you do this - Mauzen - 07.01.2013

Just the hard way: Use a timer to check if people are near the car and play the stream for them. But note that you cant make the stream start at a certain position, but just from the beginning. Everyone coming close to the car would hear the song beginning.


Re: Can you do this - nickstar - 07.01.2013

Thanks guys for helping ill try them out