Play radio station? - 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: Play radio station? (
/showthread.php?tid=358412)
Play radio station? -
Superthijs - 10.07.2012
Hi, how do I play a radio station (i.e. Bounce FM) in a specific region at the map?
Re: Play radio station? -
ViniBorn - 10.07.2012
Ex
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", 1000.0, 2000.0, 20.0, 20, 1);
Re: Play radio station? -
clarencecuzz - 10.07.2012
pawn Код:
PlayAudioStreamForPlayer(playerid, url[], Float:PosX, Float:PosY, Float:PosZ, Float:Distance, usepos)
UsePos must be 1 in this case, Find the spot where you want the radio to play, with X Y and Z, then create a distance at which the radio can be heard.
Re: Play radio station? -
Superthijs - 10.07.2012
OK, and how do I play built-in stations like Bounce FM, Radio Los Santos, WCTR etc?
Re: Play radio station? -
clarencecuzz - 10.07.2012
I'm not sure how SA-MP has affected these, but I believe you will have to find the radio files, upload them and stream them, and use that link with PlayAudioStreamForPlayer.
Re: Play radio station? -
Superthijs - 10.07.2012
But I heard Radio Los Santos in Jizzy's Pleasure dome on San Fierro, can't I make something like that?
Re: Play radio station? -
clarencecuzz - 10.07.2012
Yes... what I'm saying, is you need to find the file for Radio Los Santos, or find an alternative streaming site that will host the file, put that link into PlayAudioStreamForPlayer, and select the place you want it to play by finding it's X, Y and Z co-ordinates. And by the way, I think Radio Los Santos automatically plays in Jizzy's Pleasure Dome, because it is a single player interior location, and there is always music playing there.
Re: Play radio station? -
Superthijs - 10.07.2012
Ok, thanks.