SA-MP Forums Archive
auto put 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: auto put in vehicle (/showthread.php?tid=77919)



auto put in vehicle - CJ101 - 16.05.2009

Код:
CreateVehicle(581,X,Y-2,Z,0,0,1,0,3);
now how i get the id of the vehicle i just created, and put the player in it?




Re: auto put in vehicle - Chaprnks - 16.05.2009

pawn Код:
new vehicle = CreateVehicle(581,X,Y-2,Z,0,0,1,0,3);
PutPlayerInVehicle(playerid, vehicle, 0);