Need Help with Progress2.inc
#2

Код:
stock GetDistance( Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2 )
{
	return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( z1 - z2 ) * ( z1 - z2 ) ) ) ) );
}
Take a look at that stock

Код HTML:
if(GetDistance(x, y, z, xPoint, yPoint, zPoint) < X) // Your stuff | x, y, z are cargobob pos ...
I hope this will help you
Reply


Messages In This Thread
Need Help with Progress2.inc - by SpikY_ - 02.08.2015, 09:05
Re: Need Help with Progress2.inc - by Mariciuc223 - 02.08.2015, 09:34
Re: Need Help with Progress2.inc - by SpikY_ - 02.08.2015, 09:37
Re: Need Help with Progress2.inc - by SpikY_ - 02.08.2015, 09:39
Re: Need Help with Progress2.inc - by Mariciuc223 - 02.08.2015, 09:42
Re: Need Help with Progress2.inc - by SpikY_ - 02.08.2015, 09:44
Re: Need Help with Progress2.inc - by Mariciuc223 - 02.08.2015, 09:47
Re: Need Help with Progress2.inc - by SpikY_ - 03.08.2015, 12:55
Re: Need Help with Progress2.inc - by SecretBoss - 03.08.2015, 13:22

Forum Jump:


Users browsing this thread: 2 Guest(s)