public OnGameModeInit() {
ManualVehicleEngineAndLights();
return 1;
}
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new Float:health;
GetVehicleHealth(vehicleid, health);
if ( (floatround(health, floatround_round)/10) <= 35 ) {
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
GameTextForPlayer(playerid, "~r~Dein Auto hat ein Totalschaden.", 3, 1);
}
return 1;
}
Have Fun
// Edit: Kleinen Fail gehabt...