SA-MP Forums Archive
Question with SetVehicleZAngle - 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: Question with SetVehicleZAngle (/showthread.php?tid=101818)



Question with SetVehicleZAngle - djuro_zero - 12.10.2009

Ok, i have a problem. A have command for port cars from event garage to event races, and there is a problem with cars angle when i port them. Ok this is my code:
part from command:
Код:
         SetVehiclePos(h, NfsSFprviSpawns[h-odvozila][0], NfsSFprviSpawns[h-odvozila][1], NfsSFprviSpawns[h-odvozila][2]);
         SetVehicleZAngle(h, NfsSFprviSpawns[h-odvozila][3]);
NfsSFprviSpawns:
Код:
new Float:NfsSFprviSpawns[8][4] = {
{-2403.3811,-584.9526,132.3550,306.5826},//vozilo 1
{-2401.4153,-587.2599,132.3554,304.6973},//vozilo 2
{-2399.6099,-589.6489,132.3555,303.9410},//vozilo 3
{-2397.9277,-591.9950,132.3553,306.2879},//vozilo 4
{-2396.4810,-594.6130,132.3551,305.5128},//vozilo 5
{-2394.5796,-596.9117,132.3546,304.8688},//vozilo 6
{-2393.0657,-599.4066,132.3560,304.8253},//vozilo 7
{-2391.2209,-601.7746,132.3555,305.1953}//vozilo 8
};
and when i port this wehicles to another location angle does not mach like on 0.2x server. They are rotated about 30 degres.
Question is, did angle in SetVehicleZAngle in 0.3 and 0.2x diferent?


Re: Question with SetVehicleZAngle - Beaver07 - 12.10.2009

just redo the Zangles to make sure they are correct and it's not port it's teleport


Re: Question with SetVehicleZAngle - djuro_zero - 12.10.2009

Quote:
Originally Posted by Beaver07
just redo the Zangles to make sure they are correct and it's not port it's teleport
ther are correct omg, i have used this on 0.2x and its OK. But on 0.3 they are zangle+30 degres...

this are the pictures:
on 0.2x when i port wehicles:
http://slike.hr/slike/samp110_d2fa0.png.html

but with same zangle on 0.3 look like this:
http://slike.hr/slike/samp109_9ac5c.png.html