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
- 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\nVut Bay (vietnamese but cool)\nInput Link","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/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 9:
- {
- format(string, sizeof(string), "%s", inputtext);
- PlayAudioStreamForPlayer(playerid, string);
- }
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement