11.04.2014, 06:36
this..
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:health,vid=GetPlayerVehicleID(playerid);
GetVehicleHealth(vid, health);
if(health<=300)//enter the value to be when engine of here
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
}
}
return 1;
}