View Single Post
Old 31/01/2010, 09:56 PM   #3
Backwardsman97
High-roller
 
Backwardsman97's Avatar
 
Join Date: Nov 2007
Posts: 1,501
Reputation: 36
Default Re: [HELP] Point in range of point.

That wouldn't help him at all. I modified ******'s version of IsPlayerToPoint.

pawn Code:
stock IsPointInRangeOfPoint(Float:x, Float:y, Float:z, Float:x2, Float:y2, Float:z2, Float:range)
{
    x2 -= x;
    y2 -= y;
    z2 -= z;
    return ((x2 * x2) + (y2 * y2) + (z2 * z2)) < (range * range);
}
Backwardsman97 is offline