29.06.2016, 18:23
How to prevent vehicle from exploding, i know there was function for that, but i dont remember it.
SetTimer("nexplode", 1000, 1);
forward nexplode(); public nexplode() { for (new i; i < MAX_PLAYERS; i++) { if(IsPlayerInAnyVehicle(i)) { SetVehicleHealth(GetPlayerVehicleID(i), 1000.0); } } }
public OnVehicleDeath(vehicleid, killerid)
{
SetVehicleHealth(vehicleid, 1000.0);
return 1;
}
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if(health <= 250.0)
SetVehicleHealth(vehicleid, 1000.0);
return 1;
}