SA-MP Forums Archive
27/4 Item list - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 27/4 Item list (/showthread.php?tid=249252)



27/4 Item list - NitoPSG - 17.04.2011

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?


Re: 27/4 Item list - CrazyBlob - 17.04.2011

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


Re: 27/4 Item list - NitoPSG - 17.04.2011

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 :/


Re: 27/4 Item list - WackoX - 17.04.2011

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;
}



Re: 27/4 Item list - DRIFT_HUNTER - 17.04.2011

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