21.06.2014, 23:41
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(vehicleid == DealerShipVehicle) //Replace 'DealerShipVehicle' with your bike etc.
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
}
return 1;
}
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.