car damage
#1

its something wrong with the car damage and i bought a script so i dont where to find it ctrl+f and what should i search for? bcs the car explode when its like 20 hp left so :P
Reply
#2

Search for SetVehicleHealth
Reply
#3

Search for 20 inside of an if statement.
Reply
#4

Cars catch fire at 250 HP or something...
Reply
#5

nope didnt found it at that
Reply
#6

what u mean?
Reply
#7

Look for GetVehicleHealth
Reply
#8

Max Health: 1000.0
Explode at: 250.0

Ways to solve it:

Set HP to 1250.0 when spawning/repairing it.

OR

If the problem is that you have a Health bar for your cars health, which displays something wrong, you just have to change calculations:

Here is an example:

PHP код:
            new Float:vehHealth;
            new 
playerVehicle GetPlayerVehicleID(playerid);
            
GetVehicleHealth(playerVehiclevehHealth);
            
vehHealth floatdiv(floatsub(vehHealth150.0), 7.5); 
Now you can use VehHealth to set your car health:

250HP = 0
1000HP = 100
Reply
#9

i did only found like repair health
Reply
#10

can u come help me on skype linus.45 ? cant find that php code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)