11.07.2011, 07:03
Maybe something like this?
PHP код:
new engine,lights,alarm,doors,bonnet,boot,objective;
if(GetVehicleHealth(vehicleid, &Float:health) < 700)
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xFF0000FF, "Your vehicle was turned off because you hit something.");
return 1;
}