Is this possible?
#1

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);
Reply
#2

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.
Reply
#3

https://forum.sa-mp.com/showpost.php...18&postcount=7
Reply
#4

Quote:
Originally Posted by Calisthenics
Посмотреть сообщение
Good solution. I'd go with this.
Reply
#5

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!
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)