Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Radio System is starting ..");
- print(" Radio system has started.");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Radio System has been shut down due to a Filterscript unload/Exit.");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" 3D Radio System by Omar");
- print("----------------------------------\n");
- }
- #endif
- CMD:radio(playerid,params[])
- {
- ShowPlayerDialog(playerid,90,DIALOG_STYLE_LIST,"{FF0000}My Radio list","{FFFF00}* YA LA LA LA(Arabic Song)\n{FFFF00}* Song 7mer\n{FFFF00}* Song mot5lfen\n{FFFF00}* Song klab","Select", "Cancel");
- return 1;
- }
- CMD:stopradio(playerid,params[])
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, 0xFF0000AA, "[RADIO]You have turned off the radio.");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case 90:
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000AA, "You canceled the dialog.");
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- /*PlayAudioStreamForPlayer(playerid, "https://s03.solidfilesusercontent.com/MzMwY2YwODE5NTRjODU2YWZmYTk2ZTYxNGYwNjZjODQxNTYxMDU3MjoxYWxMZ3E6ekRQemlVRkxLakhmaTUyRWY0aDhvVEhFcllR/2D4rzRrKY7VgQ/Ya_La_La.mp3");
- SendClientMessage(playerid, 0xFF0000AA, "{FFFFFF}YA LA LA LA {FF0000}song is working now");
- SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");*/
- ShowPlayerDialog(playerid,91,DIALOG_STYLE_LIST,"{FF0000}My Radio list","{FFFF00}* YA LA LA LA(Arabic Song)\n{FFFF00}* Song 7mer\n{FFFF00}* Song mot5lfen\n{FFFF00}* Song klab","Select", "Cancel");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "");
- SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
- SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid, "");
- SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
- SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
- }
- }
- }
- case 91:
- {
- if(!response)
- {
- SendClientMessage(playerid, 0xFF0000AA, "You canceled the dialog.");
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "https://s03.solidfilesusercontent.com/MzMwY2YwODE5NTRjODU2YWZmYTk2ZTYxNGYwNjZjODQxNTYxMDU3MjoxYWxMZ3E6ekRQemlVRkxLakhmaTUyRWY0aDhvVEhFcllR/2D4rzRrKY7VgQ/Ya_La_La.mp3");
- SendClientMessage(playerid, 0xFF0000AA, "{FFFFFF}YA LA LA LA {FF0000}song is working now");
- SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "");
- SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
- SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid, "");
- SendClientMessage(playerid, 0xFF0000AA, "Song is working now");
- SendClientMessage(playerid, 0xFF0000AA, "Type /stopradio to stop audio streaming.");
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment