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



Tow cars - x96664 - 26.07.2012

How can I make the towtruck(vehid 525) to be able to tow cars without players init with button ?


Re: Tow cars - playbox12 - 26.07.2012

That would bring some complications as you would have to check if a vehicle is near you with either a timer or use of OnPlayerUpdate. If you choose to do something like that, make sure the first check is if the player is in a vehicle and the second if the player is in a towtruck before doing the area checks etc. If you use OnPlayerUpdate use scheduling code so that it doesn't get called ~40 a second.