[HELP]Dialogs
#6

try this:
(The Shop Dialog)
pawn Код:
if(dialogid == 7 && response)
{
    switch(listitem)
    {
    case 0:
        {
            if(GetPVarInt(playerid,"HaveMP3") == 1) return SendClientMessage(playerid, -1, "{FF0000}You already have a MP3 player");
            if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1, "{FF0000}You don't have $1000 to buy a mp3 player");
            GivePlayerMoney(playerid, -1000);
            SendClientMessage(playerid, COLOR_YELLOW, "You bought a MP3 player");
            SetPVarInt(playerid,"HaveMP3",1);
        }
    }
}
Reply


Messages In This Thread
[HELP]Dialogs - by eemalekorraks - 27.12.2011, 14:09
Re: [HELP]Dialogs - by §с†¶e®РµРe - 27.12.2011, 14:29
Re: [HELP]Dialogs - by eemalekorraks - 27.12.2011, 14:36
Re: [HELP]Dialogs - by eemalekorraks - 28.12.2011, 11:45
Re: [HELP]Dialogs - by ZmaXy - 28.12.2011, 23:49
Re: [HELP]Dialogs - by Andi_Evandy - 29.12.2011, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)