[FilterScript] Sound Menu - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Sound Menu (
/showthread.php?tid=234702)
Sound Menu -
Asasi - 04.03.2011
Photo:
/imageshack/i/samp052e.png/
/imageshack/i/samp080r.png/
and download photo .gif for see to dialog list: http://www.filehost.ro/17970/gif_rar/
Lines: 1132
Download: http://www.filehost.ro/179747/SOUND_rar/
Re: Sound Menu -
smeti - 04.03.2011
Nice.
Next version, maybe should try to write fewer lines, line < 400;
Re: Sound Menu -
Asasi - 04.03.2011
yes... can save a few lines
Re: Sound Menu -
smeti - 04.03.2011
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.
Re: Sound Menu -
Mean - 04.03.2011
Why'd you save lines, it makes code hardly readable when you save them. Good j0b.
Re: Sound Menu -
[MWR]Blood - 04.03.2011
Very useful, I'll use it for sure!
Re: Sound Menu -
Ironboy - 04.03.2011
Good Job
Re: Sound Menu -
wheelman_WM - 04.03.2011
Sound Cool Nice Man :P
Re: Sound Menu -
...:Lucian:... - 04.03.2011
pretty nice man i liked..........Romania 4 life is the best
Respuesta: Sound Menu -
Jovanny - 05.03.2011
:OO
Cool menu sound
exelent aport!!