Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- | Music System By RandomDude. |
- | Keep My Credits |
- | Enjoy! |
- | LOL |
- ==============================================================================*/
- /*
- Music-
- Wiz Khalifa-
- Let It Go
- Black And Yellow
- Roll Up
- Work Hard Play Hard
- Wild and Free
- On My Level
- Lil Wayne-
- Love Me
- John
- Drop The World
- LolliPop
- Shooter
- Fireman
- */
- #include <a_samp>
- #include <zcmd>
- #define ORANGE 0xFF9933AA
- #define Dialog_Music 123
- #define Dialog_WizKhalifa 7163
- #define Dialog_Lilwayne 9183
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("Music System By RandomDude.");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- 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 OnPlayerText(playerid, text[])
- {
- return 1;
- }
- CMD:music(playerid,params[])
- {
- ShowPlayerDialog(playerid,Dialog_Music,2,"Music [FS] By RandomDude.","Wiz Khalifa\nLiL Wayne\nRick Ross\nWale\n50 Cent\nTupac Shakur","Okay","Cancel");
- return 1;
- }
- CMD:stopmusic(playerid,params[])
- {
- YoutubeStopStreamForPlayer(playerid);
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == Dialog_Music)
- {
- if(response)
- {
- if(listitem==0)
- {
- ShowPlayerDialog(playerid,Dialog_WizKhalifa,2,"Music Thats By Wiz Khalifa","Let It Go\nBlack And Yellow\nRoll Up\nWork Hard Play Hard\nWild and Free\nOn My Level","Okay","Cancel");
- }
- if(listitem==1)
- {
- ShowPlayerDialog(playerid,Dialog_Lilwayne,2,"Music Thats By LiL Wayne","Love Me\nJohn\nDrop The World\nLolliPop\nShooter\nFireman","Okay","Cancel");
- }
- if(listitem==2)
- {
- SendClientMessage(playerid, ORANGE,"Change This To THE MUSIC DIALOG CREATE A NEW DIALOG HERE");
- }
- if(listitem==3)
- {
- SendClientMessage(playerid, ORANGE,"Change This To THE MUSIC DIALOG CREATE A NEW DIALOG HERE");
- }
- if(listitem==4)
- {
- SendClientMessage(playerid, ORANGE,"Change This To THE MUSIC DIALOG CREATE A NEW DIALOG HERE");
- }
- if(listitem==5)
- {
- SendClientMessage(playerid, ORANGE,"Change This To THE MUSIC DIALOG CREATE A NEW DIALOG HERE");
- }
- if(listitem==6)
- {
- SendClientMessage(playerid, ORANGE,"Change This To THE MUSIC DIALOG CREATE A NEW DIALOG HERE");
- }
- }
- }
- if(dialogid == Dialog_WizKhalifa)
- {
- if(response)
- {
- if(listitem==0)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=IJn-EHd7VeU");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==1)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=UePtoxDhJSw");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==2)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=UhQz-0QVmQ0");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==3)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=TWHNr0BrNgo");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==4)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=Wa5B22KAkEk");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==5)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=hmP7TYtDVUU");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- }
- }
- if(dialogid == Dialog_Lilwayne)
- {
- if(response)
- {
- if(listitem==0)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=KY44zvhWhp4");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==1)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=3fumBcKC6RE");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==2)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=ErCAOMi5EGM");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==3)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=2IH8tNQAzSs");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==4)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=5ibeIqOv1ww");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- if(listitem==5)
- {
- YoutubeStreamForPlayer(playerid,"http://www.youtube.com/watch?v=7y0ChoYgSek");
- SendClientMessage(playerid,ORANGE,"Please wait a few seconds if your track does not turn on.");
- }
- }
- }
- return 1;
- }
- stock YoutubeStreamForPlayer(playerid, vlink[])
- {
- new videoid[128], mp3link[128];
- strmid(videoid,vlink,strfind(vlink,"v=")+2,strfind(vlink,"v=")+15);
- format(mp3link, 128, "http://mwrserver.com/youtube.php?videoid=%s", videoid);
- PlayAudioStreamForPlayer(playerid,mp3link);
- return 1;
- }
- stock YoutubeStreamForAll(vlink[])
- {
- new videoid[128], mp3link[128];
- strmid(videoid,vlink,strfind(vlink,"v=")+2,strfind(vlink,"v=")+15);
- format(mp3link, 128, "http://mwrserver.com/youtube.php?videoid=%s", videoid);
- for(new i=0;i<MAX_PLAYERS;i++) PlayAudioStreamForPlayer(i,mp3link);
- return 1;
- }
- stock YoutubeStopStreamForAll()
- {
- for(new i=0;i<MAX_PLAYERS;i++) StopAudioStreamForPlayer(i);
- return 1;
- }
- stock YoutubeStopStreamForPlayer(playerid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement