Play radio station?
#1

Hi, how do I play a radio station (i.e. Bounce FM) in a specific region at the map?
Reply
#2

Ex
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", 1000.0, 2000.0, 20.0, 20, 1);
Reply
#3

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.
Reply
#4

OK, and how do I play built-in stations like Bounce FM, Radio Los Santos, WCTR etc?
Reply
#5

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.
Reply
#6

But I heard Radio Los Santos in Jizzy's Pleasure dome on San Fierro, can't I make something like that?
Reply
#7

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.
Reply
#8

Ok, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)