Simple menu
#1

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

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;
    }
Reply
#3

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..
Reply
#4

[Tutorial] How to make a Dialog
Reply
#5

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)