SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 16/01/2017, 08:19 PM   #1
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 216
Reputation: 65
Red face Anti-Vehicle Repair

Hello & welcome to my first release here.
I'd like to share a simple & small Include with you guys, which might be useful for anyone.

Information

The include detects right away a cheater, once he repaired his vehicle with illegal modifications.
For this case, you've one available Callback in which you can decide what happens with the cheater.
To simplify everything, all necessary Callbacks / Functions have been hooked to provide an include which is just "Plug & Play".

Protected Callbacks / Functions
  • OnPlayerDisconnect
  • OnVehicleSpawn
  • OnPlayerEnterVehicle
  • OnEnterExitModShop
  • OnPlayerStateChange
  • AddStaticVehicle
  • AddStaticVehicleEx
  • CreateVehicle
  • RepairVehicle
  • SetVehicleToRespawn
  • SetVehicleHealth

New Callback

HTML Code:
public OnPlayerVehicleHealthHack(playerid)
{
  return 1;
}

Credits
  • MP2 - PNS Coodinates
  • Jelly23 - Great support / Improving everything
  • Kaliber - Scripting Support

Updates

v-1.0.1:

Fixed bug: Timer not getting deleted (my bad)
Fixed bug: Innocent player getting banned if the previous player (cheater) fixed his vehicle to 1000hp and left it with a Søbeit key (Script couldn't reset the HP back to MaxHealth)

Now, everytime you enter a vehicle, it'll check if the Vehiclehealth is above the Maxhealth and set it back to the Maxhealth, if it's the case.


Download

Version 1.0.1 - CLICK ME

End

That's all, leave a comment, feel free to give me your feedback and stay fresh !

Last edited by JustMe.77; 22/01/2017 at 12:32 AM.
JustMe.77 is offline   Reply With Quote
Old 16/01/2017, 08:27 PM   #2
iLearner
Guest
 
Posts: n/a
Default Re: Anti-Vehicle Repair

Might come handy, good job Creator & co.
  Reply With Quote
Old 16/01/2017, 08:29 PM   #3
SkyFlare
Big Clucker
 
SkyFlare's Avatar
 
Join Date: Apr 2015
Location: NZ
Posts: 107
Reputation: 20
Default Re: Anti-Vehicle Repair

Looks like quite a bit of thought went into this, it's an improvement from the bullshit im used to seeing on this forum lately, good work JustMe.77 +rep, looks great, might even end up using this at some point, clean code too, you should keep going, add more to it.

Anti Nos Mods?
ive also seen a mod that repairs tyres only on a vehicle, so maybe you could check for that too.

.. there is a lot of potential with this, you could be building the very foundation of your own Anti Hack System.
__________________
pawn Code:
🍎--
             (•_•)                     (•_•)                  (•_•)       \(•_•)/  
             <) )–| I have a PEN    &#127822;–( (> I have an APPLE   ~) )~   Ughh  ) )   APPLE PEN
              / \                       / \                    / \          / \
My Work
Link
Information
S-Store System V2 LinkIngame Store in Dialogs
SkyFlare is offline   Reply With Quote
Old 16/01/2017, 08:33 PM   #4
Ivan_Ino
Big Clucker
 
Join Date: Oct 2012
Location: Croatia
Posts: 102
Reputation: 120
Default Re: Anti-Vehicle Repair

Nice one my friend, repped
Ivan_Ino is offline   Reply With Quote
Old 16/01/2017, 08:39 PM   #5
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 216
Reputation: 65
Default Re: Anti-Vehicle Repair

Quote:
Originally Posted by iLearner View Post
Might come handy, good job Creator & co.
Thank you for your feedback

Quote:
Originally Posted by SkyFlare View Post
Looks like quite a bit of thought went into this, it's an improvement from the bullshit im used to seeing on this forum lately, good work JustMe.77 +rep, looks great, might even end up using this at some point, clean code too, you should keep going, add more to it.

Anti Nos Mods?
ive also seen a mod that repairs tyres only on a vehicle, so maybe you could check for that too.

.. there is a lot of potential with this, you could be building the very foundation of your own Anti Hack System.
Thanks, I hope it'll save you time in case you decide to use this. I'll try to release more stuff in the future, let's see how it's going !


Quote:
Originally Posted by Ivan_Ino View Post
Nice one my friend, repped
Yo Ino, thank you, I appreciate your comment :P (Ino is also one of my teachers )
JustMe.77 is offline   Reply With Quote
Old 16/01/2017, 09:26 PM   #6
minijackc
Banned
 
Join Date: Jan 2012
Location: Im everywhere
Posts: 100
Reputation: 17
Default Re: Anti-Vehicle Repair

Good Job! +rep
minijackc is offline   Reply With Quote
Old 16/01/2017, 11:05 PM   #7
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 216
Reputation: 65
Default Re: Anti-Vehicle Repair

Quote:
Originally Posted by minijackc View Post
Good Job! +rep
Thanks, I've made an important fix, please download the latest version.
(Check Startpost to view changes)

PS: Thanks again to Jelly23 for giving me advice how to fix the problem.
JustMe.77 is offline   Reply With Quote
Old 17/01/2017, 10:39 PM   #8
iLearner
Guest
 
Posts: n/a
Default Re: Anti-Vehicle Repair

Would this work in previous samp versions?
  Reply With Quote
Old 18/01/2017, 12:08 AM   #9
XBrianX
Huge Clucker
 
Join Date: May 2015
Location: Dubai
Posts: 459
Reputation: 75
Default Re: Anti-Vehicle Repair

Quote:
Originally Posted by iLearner View Post
Would this work in previous samp versions?
Check the code and you be the judge, and also why do you want to use it in 0.3z?
XBrianX is offline   Reply With Quote
Old 18/01/2017, 03:38 PM   #10
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 216
Reputation: 65
Default Re: Anti-Vehicle Repair

By looking at the current Callbacks, it should work with previous SA:MP versions, 0.3x & 0.3z at least.
I'm not sure about the Hooking Stuff, I don't know since when that's possible (there are different hooking methods as far as i know). May someone who is more experienced than me can answer you your questions
JustMe.77 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Anti-Cheat ANTIFLY\ANTI GOD\ANTI SKIN BUG\ANTI MONEY HACK\ANTI JETPACK HACK\ANTI GODOFCARS\ANTI FAKEKILL RedMF Lançamentos/Releases 15 19/07/2018 06:29 PM
Request anti cheat, anti flyhack | anti ammo hack | anti healt hack | anti aimboter Izaki Scripting Help 1 15/06/2015 04:21 PM
Anti Flood/Anti Spam/Anti Database Hack CROSS_Hunter Server Support 3 11/09/2012 07:29 AM


All times are GMT. The time now is 02:22 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.