21.01.2011, 19:48
that plugin is the same that:
Код:
stock DistanceToPoint(playerid, Float:PointX, Float:PointY, Float:PointZ) { new Float:PosX, Float:PosY, Float:PosZ; GetPlayerPos(playerid, PosX, PosY, PosZ); return floatsqroot((PosX-PointX)*(PosX-PointX)+(PosY-PointY)*(PosY-PointY)+(PosZ-PointZ)*(PosZ-PointZ))) }