[AJUDA]sobre Stock
#7

nгo deu certo nгo....

olha a stock:

pawn Код:
stock IsPlayerInRangeOfObject(playerid, objectid)
{
    new
        Float: X,
        Float: Y,
        Float: Z;
    GetObjectPos(objectid, X, Y, Z);
    if(IsPlayerInRangeOfPoint(playerid, 20, X, Y, Z)) return 1;
    return 0;
}
e o comando

pawn Код:
CMD:cortar(playerid, params[])
    {
                #pragma unused params
        if(IsPlayerInRangeOfObject(playerid,Arvore[0]))
        {
            SendClientMessage(playerid, AMARELO, "cortando a madeira, aguarde");
        }
        else if(!IsPlayerInRangeOfObject(playerid, Arvore[0]))
        {
            SendClientMessage(playerid, AMARELO, "vocк nгo esta perto de nenhuma arvore!");
        }
        return 1;
    }
acontece que ele sempre manda a mensagem "vocк nгo esta perto de nenhuma arvore", mesmo que eu esteja dentro da arvore.... eu atй criei um teleporte pra setar a posiзгo do player exatamente pra posiзгo do objeto, mas msm assim nгo da
Reply


Messages In This Thread
[AJUDA]sobre Stock - by Lucas_Alemao - 29.01.2012, 02:40
Re: [AJUDA]sobre Stock - by DarkScripter - 29.01.2012, 04:59
Re: [AJUDA]sobre Stock - by SuperChock - 29.01.2012, 14:37
Re: [AJUDA]sobre Stock - by Lucas_Alemao - 29.01.2012, 15:10
Re: [AJUDA]sobre Stock - by SuperChock - 29.01.2012, 15:17
Re: [AJUDA]sobre Stock - by Cristhian - 29.01.2012, 15:20
Re: [AJUDA]sobre Stock - by Lucas_Alemao - 29.01.2012, 15:28
Re: [AJUDA]sobre Stock - by Ricop522 - 29.01.2012, 15:43
Re: [AJUDA]sobre Stock - by Lucas_Alemao - 29.01.2012, 15:56
Re: [AJUDA]sobre Stock - by Lуs - 29.01.2012, 16:33

Forum Jump:


Users browsing this thread: 1 Guest(s)