SA-MP Forums Archive
Disabling Radio - 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: Disabling Radio (/showthread.php?tid=658412)



Disabling Radio - DarkMythHunter - 03.09.2018

I've searched, I can't find anything related to this topic. I used several keywords, if there are I apologize. Lets get this started;


A survival server. I want that the car radio won't turn on everytime a player enters a car. I mean, it's an apocalypse no radio signals. All I want it to be is there won't be any song that play inside the car. No radio, no static. Just, none.


How do I do that? Thanks.


Re: Disabling Radio - Shinja - 03.09.2018

I dont think its possible to disable default radio.

Have you ever seen a server with this feature?


Re: Disabling Radio - DarkMythHunter - 03.09.2018

Quote:
Originally Posted by Shinja
Посмотреть сообщение
I dont think its possible to disable default radio.

Have you ever seen a server with this feature?
Yes.


Re: Disabling Radio - Banditul18 - 03.09.2018

I think streaming an invalid audio(invalid link) it will block the car radio(like streaming it upon player connecting)
Im not 100%


Re: Disabling Radio - ShihabSoft - 03.09.2018

Ya just set the audio stream to an invalid url of some sort.

PlayAudioStreamForPlayer(playerid, "http://127.0.0.1");

in

OnPlayerEnterVehicle


Re: Disabling Radio - DarkMythHunter - 04.09.2018

Quote:
Originally Posted by ShihabSoft
Посмотреть сообщение
Ya just set the audio stream to an invalid url of some sort.

PlayAudioStreamForPlayer(playerid, "http://127.0.0.1");

in

OnPlayerEnterVehicle
Worked, thanks.