command /towtruckliftacar - 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: command /towtruckliftacar (
/showthread.php?tid=288637)
command /towtruckliftacar -
Join7 - 08.10.2011
How to make the command /towtruckliftacar
When I write a command /towtruckliftcar
to the Tow Truck, attached to my car which was behind me
limited to 10 meters
Re: command /towtruckliftacar -
nilanjay - 08.10.2011
Usually people makes control system to attach a car behind the tow truck. No one uses cmds for that.
Re: command /towtruckliftacar -
AndreT - 08.10.2011
1. Find a vehicle close to the player (using
GetClosestVehicle) with a radius of 10.
2. Do some trigonometry if you find it necessary to see if the vehicle is behind the player or heading the same way (approximately).
3. Use
AttachTrailerToVehicle to attach the vehicle as a trailer to your player's vehicle.
Re: command /towtruckliftacar -
Join7 - 08.10.2011
Can I do that I did not receive
Re: command /towtruckliftacar -
Join7 - 09.10.2011
up of topic...
EDIT: I tried
http://pastebin.com/yN4xtaBt. And not working
Re: command /towtruckliftacar -
wups - 09.10.2011
Quote:
Originally Posted by Join7
|
What seems to be the problem?
Re: command /towtruckliftacar -
AndreT - 09.10.2011
The first thing I'd do in that script is replace the old methods with newer ones. The
link I gave you uses a native function for calculating distances and is hence faster.
Try something like this:
http://pastebin.com/6TgiWFK7
Re: command /towtruckliftacar -
Join7 - 09.10.2011
error 017: undefined symbol "GetVehicleDistanceFromPoint"
Re: command /towtruckliftacar -
AndreT - 09.10.2011
I'm very very sure it is a
native function. What server version are you using?
Re: command /towtruckliftacar -
Join7 - 09.10.2011
I put R5 Includes fine
But when I want to lift a car does not work