[Ajuda] Problema no comando
#5

Quote:
Originally Posted by GuilhermeH
Посмотреть сообщение
Topo do GM:
Код:
new PlantandoLaranja[MAX_PLAYERS];
Novo Comando
Код:
CMD:arvore1(playerid, params[])
{

    if(PlayerDados[playerid][SLaranja] >= 1)
    {

        if(PlantandoLaranja[playerid] >= 1) return SendClientMessage(playerid, -1, "Vocк jб estб plantando um pй de laranja.");
        new    Float: X,
        Float: Y,
        Float: Z;
        GetPlayerPos(playerid, X, Y, Z);
        SendClientMessage(playerid, AMARELO, "Бrvore de laranja plantada");
        PPequeno = CreateObject(728, X, Y, Z, 0, 0, 0, 50);
        PlantandoLaranja[playerid] = 1;
        SetTimer("PLARANJA", 5000, false);
    }

    return 1;
}
Coloque isso na funзгo do timer do "PLARANJA" :
Код:
PlantandoLaranja[playerid] = 0;
Na verdade, nгo й isso que eu quero, mas obrigado.
Quero que qualquer um pode plantar quantas quiserem sem ocorrer o erro que eu citei logo acima .
Reply


Messages In This Thread
Problema no comando - by SkullFire - 19.01.2014, 21:48
Re: Problema no comando - by rjjj - 19.01.2014, 22:17
Re: Problema no comando - by SkullFire - 19.01.2014, 22:32
Re: Problema no comando - by GuilhermeH - 20.01.2014, 12:39
Re: Problema no comando - by SkullFire - 20.01.2014, 15:31
Re: Problema no comando - by FallweN - 20.01.2014, 15:51
Re: Problema no comando - by SkullFire - 20.01.2014, 15:53
Re: Problema no comando - by SkullFire - 21.01.2014, 17:32
Re: Problema no comando - by JonathanFeitosa - 21.01.2014, 17:36
Re: Problema no comando - by SkullFire - 21.01.2014, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)