26.02.2018, 16:35
Use GetDistanceBetweenPoints.
Код:
stock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) { return VectorSize(x1-x2, y1-y2, z1-z2); } new Float:distance = GetDistanceBetweenPoints(x1, y1, z1, x2, y2, z2); printf("distance: %.1f", distance);