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)
+--- Thread: SetVehicleZangle. (
/showthread.php?tid=465883)
SetVehicleZangle. -
AfikAtashga - 24.09.2013
When i make carpark. the vehicle cannot to teleport if i'm not in car, i mean the vehicle teleported, but the Z angle of the vehicle doesn't changed.
It a sa-mp bug if i'm right. There's option to fixed it ?
Re: SetVehicleZangle. -
DanishHaq - 24.09.2013
I don't think anyone understands what you're saying, try and break it up into bits, show us the structure of how you did this to make the Z angle do something that you want to fix, and maybe some code regarding the Z angle of the vehicle and possibly the command or function that you're using.
Re: SetVehicleZangle. -
JamesH - 25.09.2013
You can set the angle to what ever you want with a simple line look below :
pawn Код:
SetVehicleZAngle(GetPlayerVehicleID(playerid), z); // the z = the angel coords example : 267.213
Re: SetVehicleZangle. -
AfikAtashga - 29.09.2013
Quote:
Originally Posted by JamesH
You can set the angle to what ever you want with a simple line look below :
pawn Код:
SetVehicleZAngle(GetPlayerVehicleID(playerid), z); // the z = the angel coords example : 267.213
|
Function SetVehicleZAngle doesn't work if there's no driver in the vehicle.
Re: SetVehicleZangle. -
Mattakil - 29.09.2013
Use CreateVehicle and set the coords to a database or some sort of saving system
Then /carpark sets the X, Y, Z co-ords that you list. Next use SetVehicleToRespawn and it should set the car to the proper Z angle and to the spot of spawn.
Re: SetVehicleZangle. -
AfikAtashga - 29.09.2013
Quote:
Originally Posted by Mattakil
Use CreateVehicle and set the coords to a database or some sort of saving system
Then /carpark sets the X, Y, Z co-ords that you list. Next use SetVehicleToRespawn and it should set the car to the proper Z angle and to the spot of spawn.
|
That how i did it, but my vehicle system isn't carshop, so if i'll want it, i'll need to Replace the code everytime, and if he sold the vehicle.. to much work for stupid thing.
There is no fix for the Function?