[Tutorial] How to make a basic shoutcast radio for your server
#1

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

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.
Reply
#3

Thanks , I will improve it soon.
Reply
#4

You Should Use Winamp ShoutCast To BrodCast Your Own Server's Radio!

Click ME !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)