11.09.2012, 18:59
Quote:
Hi All
i am trying to make an music player for server. i have some dout.its possbile to add url Dialogbox on server To Play Song i need its script plz help |
Is PT/BR Translate to UK (I Speak Portuguese '-' )
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define DIALOG_MP3 4
#define VERMELHO 0xFF0000AA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Sistema de Radios Super FOCA Iniciando");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Sistema de Radios Super FOCA desligando");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"/pararmusica",true) == 0)
{
SendClientMessage(playerid, 0x0000FFFF, "Vocк parou a mъsica digite /MP3 novamente para selecionar outra.");
StopAudioStreamForPlayer(playerid);
return 1;
}
if (strcmp(cmdtext,"/mp3",true) == 0)
{
new musica[1000];
strcat(musica,"Linkin Park - No more sorrow\nT Pain feat Turn All the Lights On\nSlipknot - Before I Forget\nSlipknot - Duality\nLinkin Park - With You\n");
strcat(musica,"Kanye West - Strongerm\nAlex Kenji, Starkillers, Nadia Ali Pressure\nGreen Day - American idiot\nGun's N Roses - Welcome to the jungle\nSlipknot - Psychosocial\n");
strcat(musica,"Asking Alexandria - a prophecy\nAsking Alexandria - not the american average\nslipknot - sulfur\nAvanged Sevenfold - after life\nSOAD - Chop suey\n");
strcat(musica,"SOAD - BYOB\nRHCP - Dani California\nRHCP - Otherside\nAvanged Sevenfold - The wicked end\nRap Do GTA(musica do login)\n{00FF00}Radio Classic Rock\n");
ShowPlayerDialog(playerid, DIALOG_MP3, DIALOG_STYLE_LIST,"Musicas",musica,"Ouvir","Sair");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_MP3)
{
if(!response) return SendClientMessage(playerid,VERMELHO,"Vocк Fechou o Player de musicas");
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/81980356/Linkin%20Park%20-%20No%20More%20Sorrow.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Linkin Park - No more sorrow Use /pararmusica para desligar.");
}
else if(listitem == 1)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/T%20Pain%20feat%20Ne%20Yo%20%27Turn%20All%20the%20Lights%20On%27%20%20%20rEVOLVEr%20in%20stores%20now.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Eltronica 1 Use /pararmusica para desligar");
}
else if(listitem == 2)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Slipknot-10%20-%20Before%20I%20Forget.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Before i Forget Use /pararmusica para desligar");
}
else if(listitem == 3)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Slipknot-Duality.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Duality Use /pararmusica para desligar.");
}
else if(listitem == 4)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Linkin%20Park%20-%20With%20You.mp3");
SendClientMessage(playerid,-1,"Ouvindo: with you Use /pararmusica para desligar");
}
else if(listitem == 5)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Kanye%20West%20%20%20Stronger.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Stronger Use: /pararmusica para desligar");
}
else if(listitem == 6)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Alex%20Kenji%2C%20Starkillers%2C%20Nadia%20Ali%20%20%20Pressure%20%28Alesso%20Remix%29.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Eletronica 2 Use /pararmusica para desligar");
}
else if(listitem == 7)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/green%20day%20-%20american%20idiot.mp3");
SendClientMessage(playerid,-1,"Ouvindo: American idiot Use /pararmusica para desligar");
}
else if(listitem == 8)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Gun%27s%20N%20Roses%20-Welcome%20to%20the%20jungle.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Welcome to the jungle Use /pararmusica para desligar");
}
else if(listitem == 9)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/silpknot%20-%20psychosocial.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Psychosocial Use /pararmusica para desligar");
}
else if(listitem == 10)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Asking%20Alexandria%20-%20A%20Prophecy.mp3");
SendClientMessage(playerid,-1,"Ouvindo: A prophecy Use /pararmusica para desligar");
}
else if(listitem == 11)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/asking%20alexandria%20-%20not%20the%20american%20average.mp3");
SendClientMessage(playerid,-1,"Ouvindo: not the american average Use /pararmusica para desligar");
}
else if(listitem == 12)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/slipknot%20-%20SULFUR.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Sulfur Use /pararmusica para desligar");
}
else if(listitem == 13)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Avenged%20Sevenfold%20-%20Afterlife.mp3");
SendClientMessage(playerid,-1,"Ouvindo: afterlife Use /pararmusica para desligar");
}
else if(listitem == 14)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/System%20Of%20A%20Down%20-%20Shop%20Suey.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Chop Suey Use /pararmusica para desligar");
}
else if(listitem == 15)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/soad-b.y.o.b.mp3");
SendClientMessage(playerid,-1,"Ouvindo: BYOB Use /pararmusica para desligar");
}
else if(listitem == 16)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Red%20Hot%20Chili%20Peppers%20-%20Dani%20California.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Dani California Use /pararmusica para desligar");
}
else if(listitem == 17)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Red%20Hot%20Chilli%20Peppers%20-%20OTHERSIDE.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Otherside Use /pararmusica para desligar");
}
else if(listitem == 18)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropbox.com/u/81980356/Avenged%20Seven%20Fold%20-%2008%20The%20Wicked%20End.mp3");
SendClientMessage(playerid,-1,"Ouvindo: the wicked end Use /pararmusica para desligar");
}
else if(listitem == 19)
{
PlayAudioStreamForPlayer(playerid,"http://rs11.stream24.org:8130");
SendClientMessage(playerid,-1,"Ouvindo: Classic Rock Use /pararmusica para desligar");
}
else if(listitem == 20)
{
PlayAudioStreamForPlayer(playerid,"http://acaasb.com.br/videos.mp3");
SendClientMessage(playerid,-1,"Ouvindo: Rap Do GTA(musica do login) Use /pararmusica para desligar");
}
return 1;
}
return 0;
}