How to kill a vehicle
#6

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        new Float:fVehicleHealth; GetVehicleHealth(vehicleid, fVehicleHealth);
       
        if(fVehicleHealth <= 20.0)
        {
            SendClientMessage(playerid, yellow, "Your vehicle has taken too much damage and refuses to move! ((Find a Mechanic))")''
            new engine, lights, alarm, doors, bonnet, boot, objective;
            GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(vehicleid, false, lights, alarm, doors, bonnet, boot, objective);
        }
    }

    return 1;
}
Reply


Messages In This Thread
How to kill a vehicle - by xXRealLegitXx - 15.02.2013, 03:58
Re: How to kill a vehicle - by T0pAz - 15.02.2013, 04:04
Re: How to kill a vehicle - by xXRealLegitXx - 15.02.2013, 04:14
Re: How to kill a vehicle - by xXRealLegitXx - 15.02.2013, 04:28
Re: How to kill a vehicle - by xXRealLegitXx - 15.02.2013, 04:30
Re: How to kill a vehicle - by doreto - 15.02.2013, 10:51
Re: How to kill a vehicle - by MP2 - 15.02.2013, 11:01
Re: How to kill a vehicle - by Vince - 15.02.2013, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)