03.03.2014, 06:36
Hey again,i saw on some servers,when you flip your car and it starts burning,it doesn`t explode,just keeps burning.Thanks!
Those scripts repair the car to 1000,i need it just to keep it burning but not exploding.
|
public OnGameModeInit() { SetTimer("OnVehicleUpdate", 1000, true); return 1; } forward OnVehicleUpdate(); public OnVehicleUpdate() { for(new i = 0; i < MAX_VEHICLES; i++) { new Float: vHealth; GetVehicleHealth(i, vHealth); if(vHealth < 250) { SetVehicleHealth(i, 300.0); } } return 1; }
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:h;
GetVehicleHealth(vehicleid,h);
if(h < 500)
{
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,-1,-1,-1,-1,-1,-1);
}
return 1;
}