Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <foreach>
- #include <zcmd>
- #define dialog_music 279
- #define dialog_music1 280
- #define dialog_music2 281
- public OnFilterScriptInit()
- {
- print("=====================================");
- print("");
- print(" gMusic Loaded ");
- print("");
- print("=====================================");
- return 1;
- }
- CMD:music(playerid,params[])
- {
- ShowPlayerDialog(playerid,dialog_music,DIALOG_STYLE_LIST,"Music","Gangnam Style\nGentleman\nDaylight\nPayphone\nSave and Sound\n22\nHeart Attack\nGive Me Your Heart A Break\nHarlem Shake\nCome And Get It\nLove You Like A Love Song\nVut Bay (vietnamese but cool)\nInput Link\nStop","Choose","Leave");
- return 1;
- }
- CMD:hiphop(playerid,params[])
- {
- ShowPlayerDialog(playerid,dialog_music2,DIALOG_STYLE_LIST,"Music","Dangerous\nShake it up","Choose","Leave");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[128];
- switch(dialogid)
- {
- case dialog_music:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Gangnam-Style-PSY/kHcntLGNzDhcbWGyLFJTvGkn");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Gentleman-PSY/kHxGyZGaAQCluNhyLbcTvmLn");
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid,"http://hcm.nhac.vui.vn/download.php?id=257880");
- }
- case 3:
- {
- PlayAudioStreamForPlayer(playerid,"http://hcm.nhac.vui.vn/download.php?id=273946");
- }
- case 4:
- {
- PlayAudioStreamForPlayer(playerid,"http://hcm.nhac.vui.vn/download.php?id=232948");
- }
- case 5:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/22-Taylor-Swift/kHxnyZnsABaGJGEykFxyvmLn");
- }
- case 6:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Heart-Attack-Demi-Lovato/kHJmyLmaAQZvERhykbJyDmLm");
- }
- case 7:
- {
- PlayAudioStreamForPlayer(playerid,"http://hcm.nhac.vui.vn/download.php?id=213826");
- }
- case 8:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Harlem-Shake-Baauer/kGxnTZHNzQkHCpkyZvctvnZH");
- }
- case 9:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Come-Get-It-Selena-Gomez/LHJHyLGslWWcdvWtkbJtDnkG");
- }
- case 10:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Love-You-Like-A-Love-Song-Selena-Gomez-amp-The-Scene/ZmJnTknsduSXhaxtZFJyDnLm");
- }
- case 11:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Vut-Bay-Young-Generation-Thanh-Bui-Noo-Phuoc-Thinh-Dong-Nhi-Ong-Cao-Thang-Si-Thanh-Thanh-Tam-Tam-Tit-365DaBand-JustaTee-Kimmese-Mr-T/kGJGykHsSpdGAZCTZvJyDGkG");
- }
- case 12:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Love-You-Like-A-Love-Song-Selena-Gomez-amp-The-Scene/ZmJnTknsduSXhaxtZFJyDnLm");
- }
- case 13:
- {
- PlayAudioStreamForPlayer(playerid,"http://mp3.zing.vn/download/song/Vut-Bay-Young-Generation-Thanh-Bui-Noo-Phuoc-Thinh-Dong-Nhi-Ong-Cao-Thang-Si-Thanh-Thanh-Tam-Tam-Tit-365DaBand-JustaTee-Kimmese-Mr-T/kGJGykHsSpdGAZCTZvJyDGkG");
- }
- case 14:
- {
- ShowPlayerDialog(playerid,dialog_music1,DIALOG_STYLE_INPUT,"Music","Input The Link Of music to play. warning it must be download mp3","OK","Cancel");
- }
- case 15:
- {
- StopAudioStreamForPlayer(playerid);
- }
- }
- }
- }
- case dialog_music1:
- {
- if(!response) return ShowPlayerDialog(playerid,dialog_music,DIALOG_STYLE_LIST,"Music","Gangnam Style\nGentleman\nDaylight\nPayphone\nSave and Sound\n22\nHeart Attack\nGive Me Your Heart A Break\nVut Bay (vietnamese but cool)\nInput Link\nStop","Choose","Leave");
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- format(string, sizeof(string), "%s", inputtext);
- PlayAudioStreamForPlayer(playerid, string);
- }
- }
- }
- }
- case dialog_music2:
- {
- if(response)
- {
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid,"http://hcm.nhac.vui.vn/download.php?id=107704");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid,"http://a.tumblr.com/tumblr_ltubm9bCye1qgj0uto1.mp3");
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement