Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //////////////////////////////////////////////////////
- // //
- // Audio Stream Filter Script //
- // //
- // BY //
- // //
- // BoxBonik(BoxBoy) //
- // //
- //////////////////////////////////////////////////////
- #define COLOR_YELLOW 0xFFFF00AA
- #define FILTERSCRIPT
- #define DIALOG_MUSIC 12
- #define DIALOG_MUSIC_PLAYLISTS 13
- #define DIALOG_MUSIC_MP3 14
- #define DIALOG_MUSIC_HITS 15
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" NewAudioFS V.1");
- print("By BoxBonik(BoxBoy)");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_MUSIC)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, DIALOG_MUSIC_PLAYLISTS, DIALOG_STYLE_LIST, "Radio Stations", "Mixed Rock", "Play","Cancel");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOG_MUSIC_HITS, DIALOG_STYLE_LIST, "2014 Hit Songs", "Lady Gaga - Applause\nLana Del Rey - Summertime Sadness\nLorde - Royals\nMiley Cyrus - Wrecking Ball\nWake Me Up -- Avicii ft. Aloe Blacc\nBlurred Lines - Robin Thicke\nCapital Cities - Safe & Sound\nDrake - Hold On We're Going Home\nJay Z FT Justin Timberlake - Holy Grail\nKaty Perry - Roar", "Play", "Back");
- }
- }
- }
- }
- if(dialogid == DIALOG_MUSIC_PLAYLISTS)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "http://www.radioparadise.com/musiclinks/rp_128.m3u");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
- }
- }
- }
- else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n3.2014 Hit Songs", "Open", "Cancel");
- }
- if(dialogid == DIALOG_MUSIC_HITS)
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/2c77kaegt5/Lady_Gaga_-_Applause_Official_.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/1v4l82x4nu/Lana_Del_Rey_-_Summertime_Sadness.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/11os4ugqn1/Lorde_-_Royals.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 3:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/i803retrlq/Miley_Cyrus_-_Wrecking_Ball.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 4:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/hgfd63p8n8/Wake_Me_Up_--_Avicii_ft._Aloe_Blacc_Lyrics.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 5:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/a7fl3k6hr3/Blurred_Lines_-_Robin_Thicke_Lyrics.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 6:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ub1g2zvsj8/Capital_Cities_-_Safe_and_Sound.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 7:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/66h4m2mg7p/Drake_-_Hold_On_We_re_Going_Home_Lyrics_.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 8:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/wldmg72u3z/JAY_Z_and_quot_Holy_Grail_and_quot_featuring_Justin_Timberlake.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- case 9:
- {
- PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/olwfhi7yxh/Katy_Perry_-_Roar_Official_.mp3");
- SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
- }
- }
- }
- else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n3.2014 Hit Songs", "Open", "Cancel");
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- CMD:music(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "Radio Stations\n2014 Hit Songs", "Open", "Cancel");
- return 1;
- }
- CMD:stopmusic(playerid, params[])
- {
- StopAudioStreamForPlayer(playerid);
- SendClientMessage(playerid, COLOR_YELLOW, "You have stopped the audio stream!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment