31.10.2010, 15:04
some one know how to make IsObjectToPoint?
public IsObjectToPoint(ObjectID, PX, PY, PZ) { new Float:OX, Float:OY, Float:OZ, Float:Diff; GetObjectPos(ObjectID, OX, OY, OZ); Diff = floatsqrt(floatpower(PX - OX, 2) + floatpower(PY - OY, 2) + floatpower(PZ - OZ, 2)); return Diff; }