Posts: 77
Threads: 13
Joined: Nov 2008
Reputation:
0
you mean if a vehicles healh is below a number, stop that vehicle from moving?
new vehiclehealth;
vehiclehealth = GetPlayerVehicleHealth(playerid);
if(vehiclehealth <= 500)
{
//do your stuff
}
Posts: 483
Threads: 5
Joined: May 2006
Reputation:
0
You need to make a timer.
Posts: 1,464
Threads: 11
Joined: Jan 2008
Reputation:
0
You need to keep track of the vehicle's speed, then if the movement of the vehicle stops suddenly and vehicle's health decreases at the same time, the vehicle has crashed into something and you can do whatever you like.
Posts: 282
Threads: 50
Joined: Apr 2008
Reputation:
0
So what i need to add more?