[FilterScript] Sound Menu
#1

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/
Reply
#2

Nice.
Next version, maybe should try to write fewer lines, line < 400;
Reply
#3

yes... can save a few lines
Reply
#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
#5

Why'd you save lines, it makes code hardly readable when you save them. Good j0b.
Reply
#6

Very useful, I'll use it for sure!
Reply
#7

Good Job
Reply
#8

Sound Cool Nice Man :P
Reply
#9

pretty nice man i liked..........Romania 4 life is the best
Reply
#10

:OO
Cool menu sound
exelent aport!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)