SA-MP Forums Archive
[Help] House Cars spawning in the wrong direction - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] House Cars spawning in the wrong direction (/showthread.php?tid=85079)



[Help] House Cars spawning in the wrong direction - MarqueZ92 - 05.07.2009

I changed some house car positions, but they are spawning not straight ahead like i saved the Coords, they are just spawning towards left / right or sometimes even 180° to the back..

This is the House cars code. (The coordinates behind the slashes are the old ones, the coords without slashes and coordinates behind it are standard and not edited yet)

pawn Код:
new Float:HouseCarSpawns[34][4] = {
{-2691.8503,205.2423,4.0989},//H1
{-2647.8877,206.0414,4.0403},//H2
{-2636.2742,244.3577,4.0340},//H3
{-2636.1870,270.9189,4.036},//H4
{-2639.9790,164.2509,4.4214}, //H5
{-2693.9072,77.3754,4.4367},//H6
{-2418.8145,327.0774,34.6729},//H7
{-2555.0938,2269.1538,4.8944},//H8 -2318.0305,30.4555,35.0247
{-2318.0840,-12.1113,35.0249},//H9
{-2346.4993,-23.1750,35.0248},//H10
{-2719.4424,720.2142,40.9396},//H11
{-2690.3132,720.4482,32.3997},//H12
{-2674.0059,720.0835,27.9929},//H13
{-2641.7422,728.0079,27.9609},//H14
{-2571.5454,1148.8217,55.8198},//H15
{-2510.1650,1139.2820,55.8196},//H16
{-2458.5869,1138.7026,55.8199},//H17
{-2664.6626,913.2929,79.3786}, //H18
{-2680.4902,867.4750,76.0737},//H19
{-2711.0737,869.4870,70.4074},//H20
{-2566.0205,2300.9287,4.7393},//H21 -1696.8843,1349.2463,6.8843
{-1679.1088,1327.4213,6.8912},//H22
{-1770.7195,948.5250,24.3127},//H23
{-2100.2520,263.8005,35.5114},///H24
{-2073.5552,230.4712,35.4957},//H25
{-2093.6931,173.8780,34.7331},//H26
{-2611.2871,2360.0281,8.5429},//H27 -1808.7924,1113.5753,45.1497
{-2616.5398,120.8491,4.0438},//H28
{-2718.2964,-15.7240,4.0474},//H29
{-2694.2886,-102.1205,4.0405},//H30
//{1880.2,-2022.3,13.3,180.0},
{-2528.5300,2250.6953,4.8150},//H31 -2062.3604,1190.2208,45.8726
{-2011.7832,1194.6403,45.0463},//H32
{-1941.9913,1193.4011,45.1138},//H33
{-2567.5776,2311.8723,4.8278}//h34 -1900.7162,1189.3602,45.1571
};
And here some pics.

[img width=1024 height=592]http://i44.tinypic.com/t5ivcg.png[/img]

[img width=1024 height=592]http://i44.tinypic.com/j9pwmc.png[/img]


Re: [Help] House Cars spawning in the wrong direction - Grim_ - 05.07.2009

Add a extra demention to save angle.


Re: [Help] House Cars spawning in the wrong direction - MarqueZ92 - 05.07.2009

Like this?

pawn Код:
X       Y      Z   Angle
          |       |      |    |
      -2611.2871,2360.0281,8.5429,358.1727



Re: [Help] House Cars spawning in the wrong direction - Grim_ - 05.07.2009

Yes.


Re: [Help] House Cars spawning in the wrong direction - MarqueZ92 - 05.07.2009

Thanks it works

Im a noob


Re: [Help] House Cars spawning in the wrong direction - Grim_ - 05.07.2009

Lol, no problem