31.03.2013, 14:33
A function that measures the distance from a point to another point, that really works! (in Metters).
PS: not done by me
PSІ: I'm posting because I've taken a long time to find
PS: not done by me
PSІ: I'm posting because I've taken a long time to find
pawn Код:
stock Float:GetDistanceBetweenPoints(Float:X, Float:Y, Float:Z, Float:PointX, Float:PointY, Float:PointZ)
{
new Float:Distance;Distance = floatabs(floatsub(X, PointX)) + floatabs(floatsub(Y, PointY)) + floatabs(floatsub(Z, PointZ));
return Distance;
}