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



Radio Stream Question - MahdiGames - 05.12.2013

Hello , iv added an fm radio that will start OnPlayerConnect, but how can i hide the link so players cant see the link even if the radio stared
Код:
PlayAudioStreamForPlayer(playerid, "TEST...");
//how to hide that from the server just make them work with out to see the link


Re: Radio Stream Question - Voxel - 05.12.2013

You cannot hide the link, but you can how ever make a clear chat function that will clear the players chat when they connect.


Re: Radio Stream Question - batonsa - 05.12.2013

In my gamemode i used audio streams for everything. Opening prison cell doors, sending PD and EMS dispatch calls and just stirring up some life into the air, etc.

What i did though, was I added a client message on player connect that told them to use the command '/audiomsg' for better experience so the stream messages won't appear.

Shortly - get them to use '/audiomsg' since thats the only way to disable the stream strings client side.

(Another option is to get them to modify their sa-mp.cfg by adding the line 'audiomsgoff 1' but i doubt they'd do that.)