[Tutorial] How to make a basic shoutcast radio for your server - 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)
+---- Forum: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to make a basic shoutcast radio for your server (
/showthread.php?tid=340446)
How to make a basic shoutcast radio for your server -
bashar0151 - 07.05.2012
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
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;
}
Re: How to make a basic shoutcast radio for your server -
TheBetaFox - 09.05.2012
If this is a tutorial, I am Hiddos' personal flying unicorn.
No offense, but you could've done something more advanced. How about making a dialog with multiple radios? Or using an actual command system instead of simply comparing strings?
Regardless of that, I give you +rep just so you don't say that I'm an asshole. PLEASE, PLEASE improve.
Re: How to make a basic shoutcast radio for your server -
bashar0151 - 11.05.2012
Thanks
, I will improve it soon.
Re: How to make a basic shoutcast radio for your server -
shayan122 - 07.07.2012
You Should Use Winamp ShoutCast To BrodCast Your Own Server's Radio!
Click ME !