SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   OnPlayerLeave AddStaticVehicleEx (https://forum.sa-mp.com/showthread.php?t=666895)

binnyl 30/05/2019 12:37 PM

OnPlayerLeave AddStaticVehicleEx
 
Code:

VehicleInfo[vehid][vID] = AddStaticVehicleEx(VehicleInfo[vehid][vModel],VehicleInfo[vehid][vParkX], VehicleInfo[vehid][vParkY], VehicleInfo[vehid][vParkZ], VehicleInfo[vehid][vParkR], cor1,cor2,0);
PutPlayerInVehicle(playerid, vehid, 0);

I make this code so player can create a train

But when player try to leave the train the camera be freezed idk why

Plastikmensch 30/05/2019 02:49 PM

Re: OnPlayerLeave AddStaticVehicleEx
 
Somewhere on the samp wiki it's documented that leaving trains messes up the camera.
Fix was SetCameraBehindPlayer after leaving trains, I believe.

binnyl 30/05/2019 05:54 PM

Re: OnPlayerLeave AddStaticVehicleEx
 
Quote:

Originally Posted by Plastikmensch (Post 4100422)
Somewhere on the samp wiki it's documented that leaving trains messes up the camera.
Fix was SetCameraBehindPlayer after leaving trains, I believe.

Thank you! +rep


All times are GMT. The time now is 08:35 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.