16.02.2009, 17:01
Quote:
Originally Posted by [LDT
LuxurY ]
please check this topic http://forum.sa-mp.com/index.php?topic=45996.0 |
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; } |
does this code works?