27.07.2013, 19:02
(
Последний раз редактировалось seanny; 27.07.2013 в 19:20.
Причина: Updated the script
)
PlayAudioStreamForPlayer does not seem to play songs hosted on dropbox. (They are all MP3)
pawn Код:
CMD:play(playerid, params[])
{
new string[128], songid;
if(strcmp(GetName(playerid), "Sean_Mcelholm", true, MAX_PLAYER_NAME) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "* You are not authorized to use that command!");
return 1;
}
if(sscanf(params, "d", songid))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /play [SongID]");
SendClientMessage(playerid, COLOR_GRAD1, "Available SongIDs: |1 Erin Go Bragh |2 Snowy Breasted Pearl |3 Butchers Apron |4 Toor a Loo ...");
SendClientMessage(playerid, COLOR_GRAD2, "... |5 My heart is in Ireland |6 Rifles of the IRA |7 Song of Liberty |8 Man from Mulingar ...");
SendClientMessage(playerid, COLOR_GRAD3, "... |9 Uncle Nobbys Steamboat |10 Janey Mac im nearly 40 |11 Flow liffey waters |12 A Soldiers life ...");
SendClientMessage(playerid, COLOR_GRAD4, "... |13 My green valleys |14 Mulingar Fleadh |15 Ta na La |16 The fighting 69 ...");
SendClientMessage(playerid, COLOR_GRAD5, "... |17 Wearing of the green |18 Paddys night out");
return 1;
}
switch(songid)
{
case 1: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/Erin%20go%20Brбgh.mp3?w=AAD_o88fzfdLh52kqssJWw7RfhMZ_bpQ6bMoaolDByzZUg");
case 2: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/Snowy%20Breasted%20Pearl%20-%20Wolfe%20Tones.mp3?w=AAD583DrgFs9DddEz-GHaQss0EEeXQ7yRoruBEwPb3srDA");
case 3: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/the%20woftones%2008%20Butcher%27s%20Apron.mp3?w=AAAfCFCS8Kx4vmqZF-nqE_BCCGGOoHV2S5wSUOZxYBQ0Vg");
case 4: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/the%20woftones%2011%20Toor%20a%20Loo%20Tooralay.mp3?w=AACac-UD-SHVgE2jfmAFTl9VrUIXyJlTsawBGbk1aIYlsw");
case 5: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20-%20My%20Heart%20Is%20In%20Ireland.mp3?w=AAAjW3d0mOOk_le33VKNIxGgxGxADPXedS_-wIDK_IIEGA");
case 6: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20-%20Rifles%20Of%20The%20IRA.mp3?w=AAB5O9yI0Vk2ynLbwDNPGBkrFpqvpVPHNAwqY1e0SJUDoA");
case 7: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20-%20Song%20Of%20Liberty.mp3?w=AAAJjnvPzJQBo927MfeG1edLUEh7YrRcUwS7pe1hceay-A");
case 8: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20-%20The%20Man%20From%20Mullingar%20%28Original%20Version%29.mp3?w=AADgsLHtOpW2Kc6hIYVyb-SXBhEr1OM8nhqDIaO2LFAI9w");
case 9: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20-%20Uncle%20Nobby%27s%20Steamboat%20%281%29.mp3?w=AADKeIe2sWZGSJuCz6c3dTMNPELmlKjq_v1LMA8e7KsXXQ");
case 10: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20%28Live%29%20-%20Janey%20Mac%20I%27m%20Nearly%2040.mp3?w=AAAO3hiWD0WUjVWiOzdIChYlGJq_k0dyyRISLNwUMlkSFA");
case 11: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20Tones%20Flow%20Liffey%20Waters.mp3?w=AABrwGwmzj90nMwiyB8WXFBLjsSqN_Caon6KumZvtM4H8A");
case 12: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfe%20tones-A%20Soldiers%20Life.mp3?w=AAAb8CPFS1WkONF_pCdzuHOlu6BaY4TZPNzW_ltSSvJEVw");
case 13: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolfetones-My%20Green%20Valleys-Lyrics%20%281%29.mp3?w=AAAmtRDyOv6JVWtc_nox4haHEMDR4ufpcf4T0aV07SdvGg");
case 14: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/the%20wolftones%20%2003%20Mullingar%20Fleadh.mp3?w=AAAlbqMK6yRGhC5HmhZf4RPY6TlsiTryRnv5jMOMn2KdcA");
case 15: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/the%20wolftones%20%20Ta%20Na%20La.mp3?w=AAAr5cMSzStp2TKp0WQatXFt62DGLFmfXwszNZWDhE1Q-Q");
case 16: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/The%20Wolftones%20The%20Fighting%2069th.The%20Irish%20Brigade..wmv.mp3?w=AABbPDfejbljpwyfxS41kjpyYJacG_K9Go8FeBU8p_dJXQ");
case 17: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/WOLFE%20TONES--WEARING%20OF%20THE%20GREEN..mp3?w=AADdfYjrPPVqB6hP7miIawnScxuadM1TCfKF1mXRh6gdWA");
case 18: PlayAudioStreamForPlayer(playerid,"https://dl-web.dropbox.com/get/Public/Wolfetones-Paddys%20Night%20Out-Lyrics%20%26%20Song.mp3?w=AACA0LCgHKo6hbu9tIEVvmdJaIn2AuZ4S7cAEjCkodonrg");
}
return 1;
}