IsPlayerInVehicle
#2

There are two ways.

Either change the health of the vehicle to a extrem high value

pawn Код:
SetVehicleHealth(vehicleid, 1000000);
https://sampwiki.blast.hk/wiki/SetVehicleHealth

or update vehicle health in OnPlayerUpdate callback.
pawn Код:
public OnPlayerUpdate(playerid)
{
    new vehicleId = GetPlayerVehicleID(playerid);
    if(vehicleId == YOUR_POLICE_VEHICLE ID)
    {
        SetVehicleHealth(vehicleId, 1000);
    }
}
Reply


Messages In This Thread
IsPlayerInVehicle - by D3vin - 13.05.2016, 17:25
Re: IsPlayerInVehicle - by Skimmer - 13.05.2016, 17:35
Re: IsPlayerInVehicle - by Konstantinos - 13.05.2016, 17:38
Re: IsPlayerInVehicle - by D3vin - 13.05.2016, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)