SA-MP Forums Archive
anti vehicle repair - 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: anti vehicle repair (/showthread.php?tid=500099)



anti vehicle repair - audriuxxx - 11.03.2014

Hi,

I want to ask. How to create a protect from vehicle repairing? i mean cheater press F1 of F2 and vehicle get fixed?


Re: anti vehicle repair - Cor3y - 11.03.2014

Hi, @Audriuxxx

script link ( pastebin ): http://pastebin.com/YQbzr9WN.
Filterscript link: https://sampforum.blast.hk/showthread.php?tid=335007


Re: anti vehicle repair - PowerPC603 - 11.03.2014

Whenever a vehicle gets damaged or repaired by your script, you can store the damage-status in an enum using GetVehicleDamageStatus.

You can use a timer (or possibly OnVehicleDamageStatusUpdate callback) to set the damage back to whatever is stored.
The hacker would not be able to keep his vehicle repaired as the timer or callback will reset his hacks.