Radio steam ingame.. [REP+]
#1

How can I add any radio I want if it is .pls and.. when they do /radiostation (example) it plays from that radio I have linked to? REP will be given for the first one as post a code as work great!
Reply
#2

ZCMD:

pawn Код:
CMD:exampleradio(playerid, params[])
{
     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805"); //Radio Paradise//
     return 1;
}
pawn Код:
COMMAND:exampleradio(playerid, params[])
{
     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805"); //Radio Paradise//
     return 1;
DCMD:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     dcmd(exampleradio, 12);
     return 0;
}

dcmd_exampleradio(playerid, params[])
{
     #pragma unused params
     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805"); //Radio Paradise//
     return 1;
}
STRCMP:

pawn Код:
if(strcmp(cmdtext, "/exampleradio", true, 11) == 0)
{
     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805"); //Radio Paradise//
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)