Radio stations for /radio command! Help me!!!
#1

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
Reply
#2

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");
Reply
#3

https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer

or

https://sampforum.blast.hk/showthread.php?tid=187229&page=315
Reply
#4

Код 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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)