IfIsAnyFBIVehNear Stock help
#4

you need this
PHP Code:
Float:GetDistanceBetweenPoints(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2)
{
    return 
floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));

or you can simply use
PHP Code:
GetPlayerDistanceFromPoint 
like this
PHP Code:
distance floatround(GetPlayerDistanceFromPoint(playeridx[0],y[0],z[0])); 
Reply


Messages In This Thread
IfIsNearFBIVeh help - by MarioKamani - 02.03.2018, 10:22
Re: IfIsAnyFBIVehNear Stock help - by PepsiCola23 - 02.03.2018, 10:57
Re: IfIsAnyFBIVehNear Stock help - by MarioKamani - 02.03.2018, 12:35
Re: IfIsAnyFBIVehNear Stock help - by PepsiCola23 - 02.03.2018, 12:39
Re: IfIsAnyFBIVehNear Stock help - by MarioKamani - 02.03.2018, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)