/drink doesn't work
#8

try this...

pawn Код:
if(strcmp(cmd, "/drink", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsAtBar(playerid))
            {
                if(PlayerDrunk[playerid] < 10)
                {
                    ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "Drink Menu", "Beer($6)\nVodka($10)\nWhiskey($15)\nWine($10)\nTequila($20)\nWather($2)\nSoda($2)\nCoca-Cola($5)\nSchweppes($5)\nPrigat($7)\nFanta($7)\nSprite($7)\nCaffe($3)\nCocktail($7)","Buy", "Cancel");
                    return 1;
                    }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, " You can't drink anymore, you will throw up !");
                    return 1;
                }
            }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE,"You are not at bar");
            return 1;
        }
    }
       return 1;
    }
Reply


Messages In This Thread
/drink doesn't work - by MrBlake - 29.07.2011, 15:50
Re: /drink doesn't work - by iPLEOMAX - 29.07.2011, 16:05
Re: /drink doesn't work - by Snipa - 29.07.2011, 16:36
Re: /drink doesn't work - by MrBlake - 29.07.2011, 17:49
Re: /drink doesn't work - by JackBauer. - 29.07.2011, 19:17
Re: /drink doesn't work - by Snipa - 29.07.2011, 19:20
Re: /drink doesn't work - by MrBlake - 30.07.2011, 06:51
Re: /drink doesn't work - by TouR - 30.07.2011, 09:01
Re: /drink doesn't work - by MrBlake - 30.07.2011, 09:29
Re: /drink doesn't work - by MrBlake - 30.07.2011, 09:33

Forum Jump:


Users browsing this thread: 3 Guest(s)