Objects Pos
#1

Why ObjectToPoint() doesn't work?
Reply
#2

ObjectToPoint is not a native function in SA-MP. If you want help regarding it, you must post the function here.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)