[Ajuda] comando /usar droga
#1

й o seguinte meu problema й: estou com um sistema de usar droga e aumentar o colete sу que ele continua aumentar apуs chegar no 100 ai queria colocar um limite

uma base do codigo:

pawn Код:
CMD:usar(playerid, params[])
{
    new droga[8];
    if(sscanf(params, "s[8]", droga)) return SendClientMessage(playerid, 0xFFFFFFAA, "Use /Usar [Maconha,Cocaina,Crack]");
    if(strcmp(droga, "maconha", true) == 0)
    {
        if(GetPVarInt(playerid, "Maconha") > 0)
        {
            new Float:colete;
            GetPlayerArmour(playerid, colete);
            SetPlayerArmour(playerid, colete + 3);
            SetPVarInt(playerid, "Maconha", GetPVarInt(playerid, "Maconha") - 1);
            format(corda, 46, "%s estб fumando maconha.", GetPlayerNick(playerid));
            MensagemDelimitada(10.0, playerid, 0xC688D4AA, corda);
            PlayerInfo[playerid][vicio] += 1;
        }
        else return SendClientMessage(playerid, 0xFFFFFFAA, "Voce nao tem maconha.");
        return 1;
    }
Reply


Messages In This Thread
comando /usar droga - by Caio_Freeze - 16.07.2013, 21:08
Re: comando /usar droga - by WLSF - 16.07.2013, 21:25
Re: comando /usar droga - by Caio_Freeze - 16.07.2013, 21:52
Re: comando /usar droga - by WLSF - 16.07.2013, 21:58
Re: comando /usar droga - by Caio_Freeze - 16.07.2013, 22:11
Re: comando /usar droga - by WLSF - 16.07.2013, 22:14
Re: comando /usar droga - by Caio_Freeze - 16.07.2013, 22:25
Re: comando /usar droga - by WLSF - 16.07.2013, 22:31
Re: comando /usar droga - by Caio_Freeze - 16.07.2013, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)