Distance
From the Scripting Manual
function Distance(Point1X, Point1Y, Point2X, Point2Y: single): single; Parameter Info: Point1X (Single): X coordinate of Point one. Point1Y (Single): Y coordinate of Point one. Point2X (Single): X coordinate of Point two. Point2Y (Single): Y coordinate of Point two. Description: This function will return the distance between Point One and Point Two.
Examples
var Dist: Single;
begin
Dist := Distance(GetPlayerStat(1,'x'),GetPlayerStat(1,'y'),GetPlayerStat(2,'x'),GetPlayerStat(2,'y'));
WriteLn('The distance between played 1 and player 2 is '+inttostr(round(Dist)));
end;