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



Simple menu - Mr.Lauren - 21.03.2012

Hello everyone, I just wanted to ask how to create a simple in-game menu for weapons for excample.
Let's say /shop, and there will be a list of weapons, and prices etc...
Thanks..


Re: Simple menu - Faisal_khan - 21.03.2012

This may help you, refer ShowPlayerDialog - SA-MP Wiki
pawn Код:
if (strcmp("/shop", cmdtext, true, 4) == 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, " WEAPON SHOP","Weapon 1  $****\nWeapon 2  $****\n ...............");//urWeapons
        return 1;
    }



Re: Simple menu - Mr.Lauren - 21.03.2012

Man, it's my third day of scripting, if you could explain a bit more, or even post a tut's link, I'll be thanksfull..


Re: Simple menu - Faisal_khan - 21.03.2012

[Tutorial] How to make a Dialog


Re: Simple menu - Mr.Lauren - 21.03.2012

Thanks