SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 30/05/2019, 12:37 PM   #1
binnyl
Big Clucker
 
Join Date: Aug 2017
Posts: 178
Reputation: 2
Default 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
binnyl is offline   Reply With Quote
Old 30/05/2019, 02:49 PM   #2
Plastikmensch
Huge Clucker
 
Join Date: Aug 2016
Posts: 249
Reputation: 16
Default 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.
Plastikmensch is online now   Reply With Quote
Old 30/05/2019, 05:54 PM   #3
binnyl
Big Clucker
 
Join Date: Aug 2017
Posts: 178
Reputation: 2
Default Re: OnPlayerLeave AddStaticVehicleEx

Quote:
Originally Posted by Plastikmensch View Post
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
binnyl is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AddStaticVehicleEx SampzzonE Scripting Help 2 05/08/2013 10:19 AM
addstaticvehicleex jop9888 Scripting Help 2 15/04/2012 11:40 AM
AddStaticVehicleEx Th3Angel Help Archive 3 03/08/2011 12:49 AM
How Do I Add Nos To AddStaticVehicleEx HayZatic Help Archive 2 06/07/2011 07:42 PM
Help me with AddStaticVehicleEx abrantley Help Archive 9 15/03/2011 06:11 AM


All times are GMT. The time now is 06:50 PM.


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