help wot to get distance kill
#2

pawn Код:
stock Float:GetDistanceBetweenPoints(Float:X, Float:Y, Float:Z, Float:PointX, Float:PointY, Float:PointZ) return floatsqroot(floatadd(floatadd(floatpower(floatsub(X, PointX), 2.0), floatpower(floatsub(Y, PointY), 2.0)), floatpower(floatsub(Z, PointZ), 2.0)));

stock Float:GetDistanceBetweenPlayers(playerid, otherplayerid)
{
new Float:X[2], Float:Y[2], Float:Z[2];
GetPlayerPos(playerid, X[0], Y[0], Z[0]);
GetPlayerPos(otherplayerid, X[1], Y[1], Z[1]);
return GetDistanceBetweenPoints(X[0], Y[0], Z[0], X[1], Y[1], Z[1]);
}
Reply


Messages In This Thread
help wot to get distance kill - by emuk - 09.05.2010, 12:36
Re: help wot to get distance kill - by ¤Adas¤ - 09.05.2010, 12:38
Re: help wot to get distance kill - by emuk - 09.05.2010, 12:39
Re: help wot to get distance kill - by ¤Adas¤ - 09.05.2010, 12:41
Re: help wot to get distance kill - by Killa_ - 09.05.2010, 12:48
Re: help wot to get distance kill - by ¤Adas¤ - 09.05.2010, 12:53
Re: help wot to get distance kill - by emuk - 09.05.2010, 13:20
Re: help wot to get distance kill - by ¤Adas¤ - 09.05.2010, 13:21
Re: help wot to get distance kill - by Killa_ - 09.05.2010, 13:28
Re: help wot to get distance kill - by ¤Adas¤ - 09.05.2010, 13:29

Forum Jump:


Users browsing this thread: 1 Guest(s)