[Pedido] Arrumar meu cmd
#1

Toda vez que mexo nгo funciona do jeito que eu quero

Eu queria q qnd vc planta-se a maconha, dps vc sу pude-se colher se tive-se na area onde plantou, mas nunca consigo fazer isso, toda vez q planta, dps n da pra colher dai some o objeto, alguem me ajuda a colocar certo, o jeito que eu to passando ta tudo funfando, mas qnd vc planta dps se pode colher em qlqr lugar tipo

pawn Код:
if(strcmp(cmd, "/plantarmaconha", true) == 0)
{
    if (Seeds[playerid] == 1) {
    SendClientMessage(playerid, COLOR_GREEN, "Vocк jб plantou uma semente!");
    SetTimerEx("Growingtime", 300000, 0, "i", playerid);
    Seeds[playerid] = 0;
    new Float:x, Float:y, Float:z, Float:a;
    GetPlayerFacingAngle(playerid, a);
    GetPlayerPos(playerid, x, y, z);
    Seeds[playerid] = CreateObject(3409, x, y, z - 1.3, 0.0, 0.0, a + 90);
    WantedPoints[playerid]-=1;
    SetPlayerCriminal(playerid,255, "Plantaзгo de Maconha");
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem sementes!");
    }
    return 1;
}

if(strcmp(cmd, "/pegarmaconha", true) == 0)
{
    new Float:x, Float:y, Float:z, Float:a;
    if (FakeWeed[playerid] == 1) {
    SendClientMessage(playerid, COLOR_GREEN, "Vocк pegou uma erva!");
    FakeWeed[playerid] = 0;
    PlayerInfo[playerid][pDrogas] += 1;
    GetPlayerFacingAngle(playerid, a);
    GetPlayerPos(playerid, x, y, z);
    } else {
    SendClientMessage(playerid, COLOR_RED, "[ERRO] Vocк nгo tem alguma erva para pegar!");
    }
    return 1;
}
Reply


Messages In This Thread
Arrumar meu cmd - by maikons - 02.01.2014, 20:31
Re: Arrumar meu cmd - by .FuneraL. - 02.01.2014, 21:01
Re: Arrumar meu cmd - by maikons - 02.01.2014, 22:09
Re: Arrumar meu cmd - by DannielCooper - 02.01.2014, 22:20
Re: Arrumar meu cmd - by maikons - 02.01.2014, 22:49
Re: Arrumar meu cmd - by maikons - 05.01.2014, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)