SA-MP Forums Archive
/repairvehicle - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /repairvehicle (/showthread.php?tid=183629)



/repairvehicle - jurtes - 16.10.2010

I would like to make a command that only I can use that repairs a nearby vehicle. I want that only I can use it if Im in my garage and that it takes like a few seconds to repair it. Like if I'm under the car (maybe something like IsPlayerInRangeOfCar) and I type /repairvehicle that it will take 5 seconds and it will be repaired.
Best regards Jur.


Re: /repairvehicle - Bessensap - 16.10.2010

theres a function in uf.inc (Useful functions) which is GetClosestCar, could help.