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



PutPlayerInVehicle - Man43 - 18.07.2018

I've making a CreateVehicle * PutPlayerInVehicle but When the vehicle spawned the put me in another area... I just want When I press 4 put my in driver vehicle and same as my location.. not another area...

PHP Code:
new Float:xFloat:yFloat:zFloat:aRanger1;
                
Ranger1 CreateVehicle(599xyza11600000);
                
LinkVehicleToInterior(Ranger1GetPlayerInterior(playerid));
                
SetVehicleVirtualWorld(Ranger1GetPlayerVirtualWorld(playerid));
                
PutPlayerInVehicle(playeridRanger10); 



Re: PutPlayerInVehicle - RedRex - 18.07.2018

Put that in your code.

PHP Code:
GetPlayerPos(playeridx,y,z); 



Re: PutPlayerInVehicle - Man43 - 18.07.2018

Thank you so much it's worked .