How can I create an array for each Player with 2 Coordinates and how can I get the distance between the 2 Positions?
PHP: array( "Player" => array( $cord1, $cord2 )); While $cord1 and $cord2, of course, are your two coordinates. PHP: $pos1->distance($pos2);// Or$pos1->distanceSquared($pos2); While $pos1 and $pos2, of course, are your two positions