View Single Post
Old 31/01/2010, 09:28 PM   #2
bartje01
High-roller
 
Join Date: Jan 2009
Posts: 1,419
Reputation: 6
Default Re: [HELP] Point in range of point.

Quote:
Originally Posted by CaHbKo
Hi,

I need a function that would check if an X.Y.Z point if in specified radius of other X.Y.Z point.
Something like IsPointInRangeOfPoint(x1, y1, z1, x2, y2, z2, radius); .

Thanks.

Maybe this is what you are searching for?

public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1524.4850,-1677.8721,6.218)
{
SendClientMessage(playerid,0xFFFFFFFF,"Yeey IceCream!!");
}


return 1;
}
bartje01 is offline