Originally Posted by °ғαιιοцт°
Quote:
Originally Posted by [LDT
|
Quote:
stock Float:AngleToPoint(Float,Float:y,Float1,Float: y1)
{
new Float:newang = atan(floatabs((x-x1)/(y-y1)));
if (x1 <= x && y1 >= y) newang += 90.0;
else if (x1 < x && y1 < y) newang += 180.0;
else if (x1 >= x && y1 <= y) newang += 270.0;
if (newang >= 360.0) newang = 0.0;
return newang;
}
|
so i was on my right way
does this code works?
|