22.03.2019, 23:24
There is even a function you could use, that would be even faster and simpler xD
//Edit: Y, forgot that
PHP код:
stock bool:IsCoordNearCoord(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2, Float:radius)
{
return VectorSize(x1-x2, y1-y2, z1-z2) <= radius;
}