#include <a_samp>
#include <zcmd>
#define music 100 //Dialóg
static MusicMenu[1][] =
{
\"{00FF33}DJ Antoine feat. The Beat Shak - Ma Cherie\" // Ezt bõvítheted
};
CMD:music(playerid,params[])
{
SendClientMessage(playerid,0x33AA33AA,\"Ha meg akarod allítani a zenét /stopmusic!\");
new string[1000];
for(new i; i < 1; i ++)
{
strcat(string, MusicMenu);
strcat(string, \"\\n\");
}
ShowPlayerDialog(playerid,music, DIALOG_STYLE_LIST, \"Music\", string, \"OK\", \"Mégse\");
return 1;
}
CMD:stopmusic(playerid,params[])
{
StopAudioStreamForPlayer(playerid);
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == music)
{
if(response)
{
switch(listitem)
{
case 0:
{
PlayAudioStreamForPlayer(playerid,\"http://s1.fans.ge/mp3/201108/24/DJ_Antoine_feat_The_Beat_Shakers-Ma_Cherie(fans_ge).mp3\"); //Bõvítheted
}
}
}
}
return 1;
}