putplayer in vehicle - 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: putplayer in vehicle (
/showthread.php?tid=415354)
putplayer in vehicle -
pelani - 12.02.2013
CreateNewPlayerVehicle(playerid, 411, 32000);
PutPlayerInVehicle(playerid, 411, 0); ?? player getting teleport to another vehicle inside and yes vehice 411 created but i want player dnt get tele port to another vehicle just create a new vehicle and inside in.
Re: putplayer in vehicle -
pelani - 12.02.2013



??
Re: putplayer in vehicle -
zDevon - 12.02.2013
The CreateNewPlayerVehicle function's second parameter is the vehicle model you want to create, and PutPlayerInVehicle is asking for a vehicle ID. 411 would not be the vehicle you just created.
pawn Код:
new tempcar = CreateNewPlayerVehicle(playerid, 411, 32000);
PutPlayerInVehicle(playerid, tempcar, 0);
and if that doesn't work, I ask to please see the CreateNewPlayerVehicle function.
Re: putplayer in vehicle -
pelani - 12.02.2013
and i want create 2nd vehicle so it dnt detect first tempcar? function?
Re: putplayer in vehicle -
pelani - 12.02.2013
still error they teleport to me a bus in red country
Re: putplayer in vehicle -
MP2 - 13.02.2013
Will you learn to use the fucking modify button?