Not-Enterable vehicle
#3

pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid == DealerShipVehicle) //Replace 'DealerShipVehicle' with your bike etc.
    {
        SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
    }
    return 1;
}
Sources:
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer
https://sampwiki.blast.hk/wiki/OnVehicleStreamIn

EDIT: However, player's will not get a message when they attempt to enter it. (Because they can't even attempt to enter it). Although you can use OnPlayerEnterVehicle to show the message regardless.
Reply


Messages In This Thread
Not-Enterable vehicle - by Bek_Loking - 21.06.2014, 22:13
Re: Not-Enterable vehicle - by iCuttah - 21.06.2014, 22:41
Re: Not-Enterable vehicle - by Threshold - 21.06.2014, 23:41
Re: Not-Enterable vehicle - by Bek_Loking - 22.06.2014, 00:14
Re: Not-Enterable vehicle - by Threshold - 22.06.2014, 01:26

Forum Jump:


Users browsing this thread: 2 Guest(s)