12.03.2012, 04:53
(
Last edited by [EuG]ZeRoGoD; 10/05/2012 at 06:17 PM.
)
~Zeros~Radio System Simple
Hey guys i present to you the simple radio script made by me useind CMD:
What dose it have?
well its not an advance system but it is dialog with 7 stations (can easly be changed)
This is the current music it has on it but i think one or 2 of them have stoped streaming witch can easy be fixed
so here is the current stations!
So here is the commands for it
Define as many cases as you need but were \r\n7.DirtyMix" add another 1 like example (\r\n8.pop") <<
Then to play that radio you have picked you can change the url
Hey guys i present to you the simple radio script made by me useind CMD:
What dose it have?
well its not an advance system but it is dialog with 7 stations (can easly be changed)
This is the current music it has on it but i think one or 2 of them have stoped streaming witch can easy be fixed
so here is the current stations!
Code:
Dance. R&B. Rock. Electro.Country.Top40.DirtyMix
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { CMD:radio(playerid,params[]). { ShowPlayerDialog(playerid,90,DIALOG_STYLE_LIST,"EuG Music List Created by zero","1. Dance\r\n2. R&B\r\n3. Rock\r\n4. Electro\r\n5.Country\r\n6.Top40\r\n7.DirtyMix","Start", "Quit"); } CMD:stopradio(playerid,params[]) { StopAudioStreamForPlayer(playerid);//This is the function we need to stop the audio from streaming the music. return 1; } return 0; }
Code:
case 2://Case 2 is the third line we put in ShowPlayerDialog(\r\n3.)
Code:
PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=21585/");//This function will play our desired radio. So we have to put the url between its brackets.