How to let players enter tram as driver? - 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: How to let players enter tram as driver? (
/showthread.php?tid=406407)
How to let players enter tram as driver? -
pasha97 - 10.01.2013
I have this porblem for many months, but i need to fix it. All serve players can enter the tram only as passengers, but how to enter it as driver? This happens only with tram! Brownstreak and another trains work fine. SO, what chall i do? Thank you!
Re: How to let players enter tram as driver? -
Henkie - 10.01.2013
Iff you want to make it yourself use:
pawn Код:
PutPlayerInVehicle(playerid, vehicleid, 0);
If you do some coding with that function, your players should able to drive in a tram.
Re: How to let players enter tram as driver? -
pasha97 - 10.01.2013
Quote:
Originally Posted by [PC]henkie[NL]
Iff you want to make it yourself use:
pawn Код:
PutPlayerInVehicle(playerid, vehicleid, 0);
If you do some coding with that function, your players should able to drive in a tram. 
|
i know xd
Re: How to let players enter tram as driver? -
Mr.Anonymous - 10.01.2013
Quote:
Originally Posted by pasha97
i know xd
|
Then why make a thread?
Re: How to let players enter tram as driver? -
Threshold - 10.01.2013
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
I'm not sure if it has something to do with the difference between AddStaticVehicle, AddStaticVehicleEx or CreateVehicle, but I normally use CreateVehicle, is that what you're using to spawn the vehicle?
Re: How to let players enter tram as driver? -
pasha97 - 10.01.2013
Quote:
Originally Posted by BenzoAMG
|
i usually use createvehicle, but trains can be spawned only with AddStaticVehicle
Re : How to let players enter tram as driver? -
yusei - 10.01.2013
https://sampforum.blast.hk/showthread.php?tid=5041