09.10.2013, 17:46
PlayAudioStreamForPlayer will not play links if they are not linked to any .mp3 file, which means it can't read the website and detect where the mp3 link is, you need to put a link which is an .mp3.
You can either use shoutcast which hosts radios 24/7 or upload your own media to a website as an .mp3 file.
Here's a simple example taken from SA-MP wiki.
Hope this helps you!
You can either use shoutcast which hosts radios 24/7 or upload your own media to a website as an .mp3 file.
Here's a simple example taken from SA-MP wiki.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/radio", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls");
return 1;
}
return 0;
}

