[Ajuda] comando /usar droga
#5

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
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);
            if (colete < 100)
            {
                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;
}
vlw ae +rep pra vc D:
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)