SA-MP Forums Archive
Vehicle radio help? - 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: Vehicle radio help? (/showthread.php?tid=641255)



Vehicle radio help? - alanhutch - 13.09.2017

Hi.
I wanted to know if you can listen to other cars radio while are passing by.
Like a car with a high volume, everyone in the place can hear him.

Sorry for my bad english, I hope you'll understand this


Re: Vehicle radio help? - n00blek - 13.09.2017

no, techically thats not possible. at least i think


Re: Vehicle radio help? - oMa37 - 13.09.2017

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer


Re: Vehicle radio help? - Banditul18 - 13.09.2017

Well im thinking about 2 ways(but i think none of them will work corectly with more than 1 car near that have radio)

Attach a sphere to the car and update its position with the one of the car. And when a player enter that area(sphere) you stream the music to him(and stop it when exit) .

Or with OnVehicleStreamIn(this way will not work properly i think)

Of course, you need to have online radio(not the default one) and somehow attach it to the car(and check if the car have radio on and then take the stream and play it to players near the car)


Re: Vehicle radio help? - n00blek - 13.09.2017

Quote:
Originally Posted by oMa37
Посмотреть сообщение
He meant if you can hear other peoples radio playing.