Hello There, Guest! Login or Register


Train and passengers
#9
Well, if I remember correctly, the script could place a passenger as passenger in the train, but that is already possible. (Or does the train has hidden seats?)
It was also possible to use the passenger cabins.

PutPlayerInVehicle

(playerid,vehicleid,seatid)
playerid ID of the player
vehicleid ID of the vehicle
seatid ID of the seat (0-driver, 1-co-driver, 2&3-passengers, if the car has enough seats)

This function does not return a specific value, it's best to simply ignore it.

PutPlayerInVehicle(playerid, vehicleid, 0);

WARNING: Putting a player into a non-existing seat, or in a seat which is already taken, will cause a crash when they EXIT the car.

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.
    * GetPlayerVehicleID: Get the ID of the car of the player
    * RemovePlayerFromVehicle: Throw player out of vehicle
Reply


Messages In This Thread
Train and passengers - by MoToRoLa - 08-06-2008, 02:24 AM
Re: Train and passengers - by Jay - 08-06-2008, 11:41 AM
Re: Train and passengers - by MoToRoLa - 08-06-2008, 05:47 PM
Re: Train and passengers - by Chillosophy - 08-06-2008, 07:09 PM
Re: Train and passengers - by MoToRoLa - 08-06-2008, 08:22 PM
Re: Train and passengers - by tomozj - 08-07-2008, 01:31 PM
Re: Train and passengers - by Nakebod - 08-08-2008, 09:11 AM
Re: Train and passengers - by Jay - 08-08-2008, 12:22 PM
Re: Train and passengers - by Nakebod - 08-08-2008, 12:36 PM
Re: Train and passengers - by MoToRoLa - 08-09-2008, 03:22 AM