04.05.2014, 10:50
Or if you want for dynamic objects only, you can use Streamer_GetDistanceToItem function.
pawn Код:
IsDynamicObjectInRangeOfPoint(objectid, Float: range, Float: x, Float: y, Float: z)
{
new
Float: distance;
Streamer_GetDistanceToItem(x, y, z, STREAMER_TYPE_OBJECT, objectid, distance);
return (distance <= range);
}