[FilterScript] Sound Menu
#4

Quote:
Originally Posted by Asasi
Посмотреть сообщение
yes... can save a few lines
I thought not: D

Example:
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);
}

//Note:
//This is just a tip!
//Not sure that you only need to copy.
Good luck.
Reply


Messages In This Thread
Sound Menu - by Asasi - 04.03.2011, 09:17
Re: Sound Menu - by smeti - 04.03.2011, 09:29
Re: Sound Menu - by Asasi - 04.03.2011, 09:33
Re: Sound Menu - by smeti - 04.03.2011, 09:53
Re: Sound Menu - by Mean - 04.03.2011, 09:58
Re: Sound Menu - by [MWR]Blood - 04.03.2011, 11:23
Re: Sound Menu - by Ironboy - 04.03.2011, 11:25
Re: Sound Menu - by wheelman_WM - 04.03.2011, 11:27
Re: Sound Menu - by ...:Lucian:... - 04.03.2011, 17:11
Respuesta: Sound Menu - by Jovanny - 05.03.2011, 00:47

Forum Jump:


Users browsing this thread: 4 Guest(s)