27/4 Item list
#1

Guys, i want to make a list with buyable items in my 27/4 shop, when someone enter the shop will type /buy and a list will appear, how to make this?
Reply
#2

use dialogs for the menu and /buy with the cords in the 24/7 shop
Reply
#3

Quote:
Originally Posted by CrazyBlob
Посмотреть сообщение
use dialogs for the menu and /buy with the cords in the 24/7 shop
i didn't get what you say :/
Reply
#4

Something like this?

pawn Код:
CMD:buy(playerid, params[])
{
    if(!IsPlayerInRangeofPoint(playerid, 6.0, 0.000,0.0000,0.0000))
        return SendClientMessage(playerid, COLOR_RED, ""You're not in the shop!");

    ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_LIST, "Shop", "Item 1/nItem 2/nItem 3", "Buy", "Cancel");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1337)
    {
        if(!response) return 1;
        switch(listitem)
        {
            case 0: // Item 1
            case 1: // Item 2
            case 2: // Item 3

        }
    }
    return 1;
}
Reply
#5

Try with SoutWhest roleplay (its have good system)
And by the way its 24/7
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)