Radio stations for /radio command! Help me!!! - 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 stations for /radio command! Help me!!! (
/showthread.php?tid=399263)
Radio stations for /radio command! Help me!!! -
Goldino - 13.12.2012
Hey guys! I'm making a /radio command for my server!
I want these radio stations:
Kiss 100
Capital FM
London's Heart
Choice FM
Can you please tell me how I can play them? How do I get the links
Re: Radio stations for /radio command! Help me!!! -
Jakku - 13.12.2012
You need to find out a stream URL such as
http://something.com/stream.pls
If you already got a link, use PlayAudioStreamForPlayer to begin streaming the music into the server
pawn Код:
PlayAudioStreamForPlayer(playerid, "http://something.com/stream.pls");
Re: Radio stations for /radio command! Help me!!! -
Glad2BeHere - 13.12.2012
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
or
https://sampforum.blast.hk/showthread.php?tid=187229&page=315
Re : Radio stations for /radio command! Help me!!! -
[HRD]Mar1 - 13.12.2012
Код HTML:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kiss100", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://icy-e-03.sharp-stream.com:80/kiss100.mp3");
return 1;
}
if (strcmp("/capitalfm", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://media-ice.musicradio.com:80/CapitalManchesterMP3");
return 1;
}
if (strcmp("/heartlondon", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://mediasrv-the.musicradio.com/HeartLondon");
return 1;
}
if (strcmp("/choicefm", cmdtext, true) == 0)
{
PlayAudioStreamForPlayer(playerid, "http://media-ice.musicradio.com:80/ChoiceFMMP3");
return 1;
}
return 0;
}
Rep+ if i helped you