Posts: 1,419
Threads: 264
Joined: Jan 2009
Reputation:
0
Hey guys.
I have a question.
Like when I do SetPlayerPos the player automaticly gets out of the vehicle. How to let him stay in the car?
Thanks
Posts: 372
Threads: 37
Joined: Jul 2007
Reputation:
0
If their in the driver seat I think you need to do RemovePlayerFromVehicle(playerid); but, I am unsure.
Posts: 1,419
Threads: 264
Joined: Jan 2009
Reputation:
0
He must stay in the vehicle. So the vehicle and himself will both fly.
Posts: 372
Threads: 37
Joined: Jul 2007
Reputation:
0
Oh, So you wan't to make it so they can't exit the vehicle. Well you could make it so... You set a variable like "InFlight" and when they exit the vehicle if their "InFlight" == 1 it will PutPlayerInVehicle(playerid, vehicleid, 0);
0 = Driver Seat btw
Posts: 1,419
Threads: 264
Joined: Jan 2009
Reputation:
0
Well i don't think I need that :P I just want that the player stays in the vehicle when I set his pos.
Posts: 2,938
Threads: 162
Joined: May 2010
return 0. if id == in vehicle then return 0
wow .. L<.<@ mister