SA-MP Forums Archive
Car spawn. - 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: Car spawn. (/showthread.php?tid=569842)



Car spawn. - itachi - 03.04.2015

Quote:

new Floatos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
CreateVehicle(482, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
PutPlayerInVehicle(playerid, 482, 0);

Please i want if player spawn this car,so no playet put in vehicle,but car spawn before player.


Re: Car spawn. - Karan007 - 03.04.2015

Remove the putplayerinvehicle.


Re: Car spawn. - Sellize - 03.04.2015

PHP код:
new Float:pos[4];
GetPlayerPos(playeridpos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playeridpos[3]);
CreateVehicle(482pos[0], pos[1], pos[2], pos[3], 111200); 
This will however spawn the vehicle right on top of the player.


Re: Car spawn. - itachi - 03.04.2015

thanks