Posts: 117
Threads: 48
Joined: Mar 2013
Reputation:
0
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
Posts: 196
Threads: 40
Joined: Feb 2012
Reputation:
0
Search for SetVehicleHealth
Posts: 81
Threads: 2
Joined: Jun 2016
Reputation:
0
Search for 20 inside of an if statement.
Posts: 6,242
Threads: 8
Joined: Jun 2008
Cars catch fire at 250 HP or something...
Posts: 117
Threads: 48
Joined: Mar 2013
Reputation:
0
nope didnt found it at that
Posts: 119
Threads: 32
Joined: Mar 2010
Reputation:
0
Look for GetVehicleHealth
Posts: 1,219
Threads: 51
Joined: Jul 2012
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(playerVehicle, vehHealth);
vehHealth = floatdiv(floatsub(vehHealth, 150.0), 7.5);
Now you can use VehHealth to set your car health:
250HP = 0
1000HP = 100
Posts: 117
Threads: 48
Joined: Mar 2013
Reputation:
0
i did only found like repair health
Posts: 117
Threads: 48
Joined: Mar 2013
Reputation:
0
can u come help me on skype linus.45 ? cant find that php code