SA-MP Forums Archive
Train on tram-rails in San Fierro - 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)
+--- Thread: Train on tram-rails in San Fierro (/showthread.php?tid=290593)



Train on tram-rails in San Fierro - PowerPC603 - 16.10.2011

Hi,

I've got a problem.

I already figured out how to place train and I've placed 5 trains aroudn San Andreas (one at each trainstation).
Those trains work as expected. I can enter them and drive them around the map.
I searched the forum and currently, it's not possible to use both train rails.
All trains are on the same rail, I can live with that.

I added a sixth one on the tram-tracks in San Fierro, but I cannot enter it.

I've used AddStaticVehicle to create them in OnGameModeInit (all with model-id 537).

Why can't I enter the sixth one?
Is it because GTA think it's a tram (as it's on the tram rails) and you cannot drive trams?


Re: Train on tram-rails in San Fierro - AeroBlast - 16.10.2011

Maybe you could do something with PutPlayerInVehicle(blah,blah,...); ?


Re: Train on tram-rails in San Fierro - PowerPC603 - 21.10.2011

I got this working using PutPlayerInVehicle.

Tram-jobs are now possible


Re: Train on tram-rails in San Fierro - Joe Staff - 21.10.2011

The problem is it looks completely ridiculous as your player sits facing the front like he's driving a car.