/buy Command help
#9

Quote:
Originally Posted by jessejanssen
Посмотреть сообщение
This should work all good, would be very weird if it doesn't.

pawn Код:
CMD:buy(playerid, params[])
{
    if(IsAt247(playerid))
        {
        if(PlayerInfo[playerid][pDonateRank] >= 1)
            {
            ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "24/7", "Phone Book        $4000\nDice         $400\nCondom        $40\nSpraycan       $160\nRope          $800\nCigar         $40\nSprunk         $8\nCheckbook       $400\nBag           $5000\nPapers           $400", "Buy", "Cancel");
            return 1;
            }
        else
            {
            ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "24/7", "Phone Book        $500\nDice          $500\nCondom        $50\nSpraycan       $200\nRope          $1000\nCigar            $50\nSprunk         $10\nCheckbook      $500\nBag           $6000\nPapers           $500", "Buy", "Cancel");
            return 1;
            }
        }
    else if(IsAtElecShop(playerid))
        {
        if(PlayerInfo[playerid][pDonateRank] >= 1)
            {
            ShowPlayerDialog(playerid, STOREMENU2, DIALOG_STYLE_LIST, "Electronic's Shop", "Cell Phone      $400\nCD Player     $40\nVehicle Lock       $4000\nPortable Radio       $40000\nCamera          $160", "Buy", "Cancel");
            return 1;
            }
        else
            {
            ShowPlayerDialog(playerid, STOREMENU2, DIALOG_STYLE_LIST, "Electronic's Shop", "Cell Phone      $500\nCD Player     $50\nVehicle Lock       $5000\nPortable Radio       $50000\nCamera          $200", "Buy", "Cancel");
            return 1;
            }
        }
    else if(IsAtHardShop(playerid))
        {
        if(PlayerInfo[playerid][pDonateRank] >= 1)
            {
            ShowPlayerDialog(playerid, STOREMENU3, DIALOG_STYLE_LIST, "Hardware Store", "Screwdriver        $400\nHammer        $300\nFuelcan       $4000", "Buy", "Cancel");
            return 1;
            }
        else
            {
            ShowPlayerDialog(playerid, STOREMENU3, DIALOG_STYLE_LIST, "Hardware Store", "Screwdriver        $500\nHammer        $400\nFuelcan       $5000", "Buy", "Cancel");
            return 1;
            }
        }
    else
        {
        SendClientMessageEx(playerid, COLOR_GRAD2, "   You are not in any store!");
        return 1;
        }
}
Jesse
Forget about OnDialogResponse ?
Reply


Messages In This Thread
/buy Command help - by [TC]XxJuggaloxX - 26.10.2012, 00:07
Re: /buy Command help - by Stu1 - 26.10.2012, 00:36
Re: /buy Command help - by [TC]XxJuggaloxX - 26.10.2012, 02:10
Re: /buy Command help - by newbienoob - 26.10.2012, 02:15
Re: /buy Command help - by [TC]XxJuggaloxX - 26.10.2012, 02:20
Re: /buy Command help - by [TC]XxJuggaloxX - 26.10.2012, 04:12
Re: /buy Command help - by Yamakei - 26.10.2012, 04:54
Re: /buy Command help - by jessejanssen - 26.10.2012, 07:22
Re: /buy Command help - by verlaj - 26.10.2012, 07:37
Re: /buy Command help - by jessejanssen - 26.10.2012, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)