11.12.2010, 14:11
You can calculate the distance with this formula:
distance = floatsqroot( (player1x - player2x) * (player1x - player2x) + (player1y - player2y) * (player1y - player2y) + (player1z - player2z) * (player1z - player2z) )
Just use this in OnPlayerDeath
distance = floatsqroot( (player1x - player2x) * (player1x - player2x) + (player1y - player2y) * (player1y - player2y) + (player1z - player2z) * (player1z - player2z) )
Just use this in OnPlayerDeath