07.05.2012, 13:12
Hello, this is my first ever today i am going to show how to add your shoutcast radio streem in to your server using the commands /startradio and /stopradio
lets start out with the start the start command
and the end command
lets start out with the start the start command
pawn Код:
}
if(strcmp(cmdtext, "/startradio",true)==0)
{
PlayAudioStreamForPlayer(playerid, "http://109.169.26.79:8036/listen.pls"); // enter your streem link to your plylist
SendClientMessage(playerid,COLOR_YELLOW,"You Are Connected To SLRP Radio."); // Enter your conect message
return 1;
}
and the end command
pawn Код:
if(strcmp(cmdtext, "/stopradio",true)==0)
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid,COLOR_YELLOW,"You Have Disconnected From SLRP Radio."); //enter a disconnect messaage
return 1;
}