SA-MP Forums Archive
Tune items - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tune items (/showthread.php?tid=498768)



Tune items - George0305 - 05.03.2014

As the title says,i saw on some servers that you can make a faction for example,and the members of it have the command to tune your car,how can i make the table with tunning items?Thanks.


Re: Tune items - Avi Raj - 05.03.2014

First - Create a command using ZCMD (preferred)
Second - How to Create A Dialog
Third - OnDialogResponse

its Done!


Re: Tune items - George0305 - 05.03.2014

And how do i connect the cmd to the dialog?


Re: Tune items - kbalor - 05.03.2014

Код:
#define TUNEMENU 15000


CMD:tune (playerid, params[])
{
     ShowPlayerDialog(playerid, TUNEMENU, DIALOG_STYLE_LIST, "Tune Menu","Nitrox\nHydraulics\nWheels\nPaint Jobs\nColours", "Select", "Back");
     return 1;
}
It will connect the dialog to command you use IF you defined the dialog name correctly. And make sure the dialog ID you use are different from each defined dialog or it may cause conflicts on the dialog


Re: Tune items - George0305 - 05.03.2014

Ok,got it.Thanks!