About anti-hp vehicle. - 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: About anti-hp vehicle. (
/showthread.php?tid=303373)
About anti-hp vehicle. -
Tomejus - 13.12.2011
hello everyone,
It's time to create some anti-cheat for vehicle hp restore, so i've searching for best method to do this, maybe someone of you have already created it and can share?
One of option for me is to remove all sprays/tunings and set vehicles hp to 999, and with timer check if healths over 999 than kick/ban etc. player... What do recommend you?
Re: About anti-hp vehicle. -
Yvax - 13.12.2011
You can make a function like SafeSetVehicleHealth(vehicled, health) and use it in your script.This function would set the vehicle's HP and a variable called VehHP[MAX_VEHICLES] for example.Using a timer you can check if the VehHP is equal to the real vehicle's health.If not=>Ban.
Re: About anti-hp vehicle. -
=WoR=G4M3Ov3r - 13.12.2011
Wait, you want a code ?, or your just taking opinions ?
Re: About anti-hp vehicle. -
Tomejus - 13.12.2011
Quote:
Originally Posted by =WoR=G4M3Ov3r
Wait, you want a code ?, or your just taking opinions ?
|
Opinions and maybe a little bit of code (to let me understand the real meaning).
P.s above comment it's like a money anti-cheat checkin with real moneys and variable, thanks, i may try this today.
Re: About anti-hp vehicle. -
cessil - 14.12.2011
just updated my thread with tips on vehicle health cheat detection
http://forum.sa-mp.com/showthread.ph...22#post1050022