Conditional script problem
#2

pawn Код:
stock Float:GetDistanceBetweenPoints(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2)
{
    x1 -= x2;
    y1 -= y2;
    z1 -= z2;
    return floatsqroot((x1 * x1) + (y1 * y1) + (z1 * z1));
}
Then just find the car that is the least far away from the player.
Reply


Messages In This Thread
Conditional script problem - by Swiftz - 15.04.2011, 07:30
Re: Conditional script problem - by Vince - 15.04.2011, 07:48
Re: Conditional script problem - by Swiftz - 15.04.2011, 08:01
Re: Conditional script problem - by Swiftz - 16.04.2011, 01:38

Forum Jump:


Users browsing this thread: 1 Guest(s)