Objects Pos
#3

Use this:
pawn Код:
stock ObjectToPoint(Float:radi, objectid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetObjectPos(objectid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
My ObjectToPoint. Edited version of PlayerToPoint.
Reply


Messages In This Thread
Objects Pos - by usersamp - 15.01.2012, 08:08
Re: Objects Pos - by JamesC - 15.01.2012, 08:29
Re: Objects Pos - by Mean - 15.01.2012, 09:52

Forum Jump:


Users browsing this thread: 1 Guest(s)