Is this possible? - 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: Is this possible? (
/showthread.php?tid=660121)
Is this possible? -
StRaphael - 25.10.2018
Hello there, I am wondering if is this possible: to pot a checkpoint behind a car. For example I use /takebags to take my bags from the car. How to put checkpoint BEHIND( in the back) of the car?
I am currently using this code but if the vehicle changes his angle, the cp put on the left or right side of vehicle.
Код:
new Float:coord[3];
GetVehiclePos(carid, coord[0], coord[1], coord[2]);
SetPlayerCheckpoint(playerid, coord[0], coord[1]-3.1, coord[2], 1.0);
Re: Is this possible? -
Infin1ty - 25.10.2018
Why not get the player to open the vehicle's trunk and then check if the player is in range of the vehicle? It will be much easier.
Re: Is this possible? -
Calisthenics - 25.10.2018
https://forum.sa-mp.com/showpost.php...18&postcount=7
Re: Is this possible? -
Infin1ty - 25.10.2018
Quote:
Originally Posted by Calisthenics
|
Good solution. I'd go with this.
Re: Is this possible? -
StRaphael - 25.10.2018
Quote:
Originally Posted by Infin1ty
Why not get the player to open the vehicle's trunk and then check if the player is in range of the vehicle? It will be much easier.
|
Quote:
Originally Posted by Calisthenics
|
Thank y'all for helping me!