SA-MP Forums Archive
[HELP]How I can do for them to get on the train more than one passenger? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]How I can do for them to get on the train more than one passenger? (/showthread.php?tid=151876)



[HELP]How I can do for them to get on the train more than one passenger? - Manuel_Luna - 01.06.2010

Hi!
I have put a train on my server, but can only get on the train driver and one passenger. Can not get on the train more than one passenger. How I can do for them to get on the train more than 2 or 3 passengers?

Thanks



Re: [HELP]How I can do for them to get on the train more than one passenger? - Flashy - 01.06.2010

The vehicle object "Train" get only get 1 passenger. In Singlepalyer, in GTA San Andreas SAMP everywhere.
Passengers can get on the Train Behind if you understand..


Re: [HELP]How I can do for them to get on the train more than one passenger? - Manuel_Luna - 02.06.2010

Quote:
Originally Posted by Flashy
The vehicle object "Train" get only get 1 passenger. In Singlepalyer, in GTA San Andreas SAMP everywhere.
Passengers can get on the Train Behind if you understand..
I have seen servers where, on a train had 12 passengers inside of it.

On my server when I write / veh 538 0 0, the train does not appear in the Railroads. But if I write / veh 449 0 0, the tram does appear in the Railroads, but you can only get on the tram only passenger. And when the tram appear in the Railroads of SF, I can not get on as a driver.



Re: [HELP]How I can do for them to get on the train more than one passenger? - Flashy - 02.06.2010

Well I never saw or know that Afaik, I canґt help you cause I am too busy now
Hope anyone help you!


Re: [HELP]How I can do for them to get on the train more than one passenger? - antiganye11 - 11.06.2010

Quote:
Originally Posted by Manuel_Luna
Quote:
Originally Posted by Flashy
The vehicle object "Train" get only get 1 passenger. In Singlepalyer, in GTA San Andreas SAMP everywhere.
Passengers can get on the Train Behind if you understand..
I have seen servers where, on a train had 12 passengers inside of it.

On my server when I write / veh 538 0 0, the train does not appear in the Railroads. But if I write / veh 449 0 0, the tram does appear in the Railroads, but you can only get on the tram only passenger. And when the tram appear in the Railroads of SF, I can not get on as a driver.
Because the Vehicle system does the job with CreateVehicle();. Remember to use AddStaticVehicle(); when you spawn a train.


Re: [HELP]How I can do for them to get on the train more than one passenger? - Manuel_Luna - 20.06.2010

I use AddStaticVehicleEx(......


Re: [HELP]How I can do for them to get on the train more than one passenger? - DJDhan - 20.06.2010

Use AddStaticVehicle for train.
When you add a train with AddStaticVehicle, people can actually sit in as passenger because when you add the "train model id" in the AddStaticVehicle, not only the engine, but the whole train with three or four compartments are attached to it by default.

Train Model ID - 538


Re: [HELP]How I can do for them to get on the train more than one passenger? - Hiddos - 20.06.2010

Quote:
Originally Posted by DJDhan
Use AddStaticVehicle for train.
When you add a train with AddStaticVehicle, people can actually sit in as passenger because when you add the "train model id" in the AddStaticVehicle, not only the engine, but the whole train with three or four compartments are attached to it by default.

Train Model ID - 538
Trains only can be created by using AddStaticVehicle ¬_¬

You might wish to experiment with OnPlayerKeyStateChange