Posts: 84
Threads: 24
Joined: Jul 2009
Reputation:
0
Hi guys,
I want to know if there is a reliable way to detect whether a vehicle (with one player driving) is invincible?
Thank you all for your replies
Posts: 1,018
Threads: 129
Joined: Apr 2011
Reputation:
0
Well, most likely you have to check it's HP first. If it's greater than 1000.0, then the player should be banned. However, a smarter hack might use the vehicle's HP to it's advantage(so the hack can't be detected), and if the vehicle's HP it's less than 1000.0, it immediatly repairs/restores the vehicle's health back to 1000.0(so, yeah, same as the previous hack, just smarter).
In that case you should script a timer FOR EACH individual vehicle in the server(don't loop through them in a single timer). First of all, you're first checking if the vehicle has a driver. When you find the desired vehicle, check it's HP. If it's less than 1000, then store that variable(or somehow remember the vehicle). When the timer executes again for that vehicle, if it's HP is 1000, then you should ban the player. HOWEVER, you also need to check if they are not in range of modding garages, or Pay n Sprays. You might ban him for sparying his vehicle. So, yeah, seems hard, but it's not that hard.
Posts: 187
Threads: 45
Joined: Jan 2013
Reputation:
0
You can see vehicles health and if its bigger then 999.9
Posts: 84
Threads: 24
Joined: Jul 2009
Reputation:
0
I figured out how to detect when the player returns to the life his vehicle but what I want is a way to detect when the player takes the example colission with another vehicle but the vehicle does not lose life.
I hope you understand!
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
You lot don't understand his question.
He wants to make it so if people shoot his car / he crashes it and he doesn't get damaged = hacks.
Although I think it is pretty impossible. ^
Posts: 84
Threads: 24
Joined: Jul 2009
Reputation:
0
The problem is that the life of my vehicle and the same as the player's life (I script a derby)
Posts: 2,364
Threads: 135
Joined: Dec 2009
Reputation:
0
so, the player has MAX 1000 health ?
because the vehicle cant have MAX 100 as it will explode straight away.
if that's the case the code should work