[pawn]new
soundid[] = { 1002, 1009, 1020 }; // etc..
#define DIALOGTITLE \"{FFFFFF}Sound menu by {FFFFFF}[{FFDD18}Akord{FFFFFF}] :\"
#define START_DIALOGID 6101
//-----
for(new i; i < sizeof (soundid); i ++);
{
ShowDialog(playerid, listitem);
}
ShowDialog(playerid, listitem)
{
new
str[128];
format(str, sizeof(str), \"{FFDD18}Sound ID: {F6F6F6}%d\", soundid[listitem]);
ShowPlayerDialog(playerid, START_DIALOGID + listitem, DIALOG_STYLE_MSGBOX, \"\"#DIALOGTITLE\"\", str, \"Replay\", \"Exit\");
PlayerPlaySound(playerid, soundid[listitem], 0.0, 0.0, 0.0);
}[/pawn]
Nemtudom,hogy ez jó e de nézd meg.