SpiralRock

Untitled

Aug 29th, 2010
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. /===========================================/AT TOP OF THE SCIPTS==========================
  2.  
  3. public Float: GetDistance(Float:X1,Float:Y1,Float:Z1,Float:X2,Float:Y2,Float:Z2);
  4. // ===================================================================
  5.  
  6.  
  7.  
  8. public Float: GetPlayerDist(plr1,plr2)
  9. {
  10. new Float:X,Float:Y,Float:Z,Float:X1,Float:Y1,Float:Z1;
  11. GetPlayerPos(plr1,X,Y,Z);
  12. GetPlayerPos(plr2,X1,Y1,Z1);
  13. new Float:Dist=GetDistance(X,Y,Z,X1,Y1,Z1);
  14. return Dist;
  15. }
Add Comment
Please, Sign In to add comment