Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Radio System By SimpalK
- // My First FS
- // Thanks to Use :)
- #include <a_samp>
- #define radio 1
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Radio System By SimpalK Loaded ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Radio System By SimpalK Unloaded ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/radio", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST,"{FF00FF}Radio Channels","Classical\nCountry\nFolk\nJazz\nPop\nRap\nRock\nBlues\n{FFFF00}Stop Radio","Select","Close");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=22146");
- GameTextForPlayer(playerid,"Loading ~b~Classical Songs....",3000,6);
- }
- if(listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
- GameTextForPlayer(playerid,"Loading ~b~Country Songs....",3000,6);
- }
- if(listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=28532");
- GameTextForPlayer(playerid,"Loading ~b~Folk Songs....",3000,6);
- }
- if(listitem == 3)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=86433");
- GameTextForPlayer(playerid,"Loading ~b~Jazz Songs....",3000,6);
- }
- if(listitem == 4)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=203280");
- GameTextForPlayer(playerid,"Loading ~b~Pop Songs....",3000,6);
- }
- if(listitem == 5)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=111772");
- GameTextForPlayer(playerid,"Loading ~b~Rap Songs....",3000,6);
- }
- if(listitem == 6)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1660760");
- GameTextForPlayer(playerid,"Loading ~b~Rock Songs....",3000,6);
- }
- if(listitem == 7)
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=19275");
- GameTextForPlayer(playerid,"Loading ~b~Blues Songs....",3000,6);
- }
- if(listitem == 8)
- {
- StopAudioStreamForPlayer(playerid);
- GameTextForPlayer(playerid,"~r~RADIO Stopped!",2000,6);
- }
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement