SA-MP Forums Archive
How get vehicle front, rear info pos? - 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 get vehicle front, rear info pos? (/showthread.php?tid=633153)



How get vehicle front, rear info pos? - Bussyman - 26.04.2017

Hi,

I'am doing like that:

Код:
new Float:X, Float:Y, Float:Z;
		GetVehicleModelInfo(GetVehicleModel( GetPlayerVehicleID( playerid ) ), VEHICLE_MODEL_INFO_REARSEAT, X, Y, Z);

		new Float:posodasdsd[ 3 ];
		GetVehiclePos( GetPlayerVehicleID( playerid ), posodasdsd[ 0 ],posodasdsd[1],posodasdsd[2]);
		
		posodasdsd[ 0 ] +=X;
		posodasdsd[1] +=Y;
		posodasdsd[2] +=Z;

	
		SetPlayerPos( playerid, posodasdsd[ 0 ],posodasdsd[1],posodasdsd[2]+5.0);
But that not tele my where i sit, i want to do that you will be teleported at same place you sit at chair.