How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
Quote from: Kenneth Law on Sep 10, 2019, 08:57 AMHow can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
Quote from: MEGAMIND on Sep 10, 2019, 10:30 AMQuote from: Kenneth Law on Sep 10, 2019, 08:57 AMHow can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
Quote from: Kenneth Law on Sep 10, 2019, 10:49 AMQuote from: MEGAMIND on Sep 10, 2019, 10:30 AMQuote from: Kenneth Law on Sep 10, 2019, 08:57 AMHow can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
try using this:
function onPlayerEnteringVehicle( player, vehicle, door )
{
if( vehicle.Model == 191 ) return 0;
}
Quote from: MatheuS on Sep 10, 2019, 11:45 AMQuote from: Kenneth Law on Sep 10, 2019, 10:49 AMQuote from: MEGAMIND on Sep 10, 2019, 10:30 AMQuote from: Kenneth Law on Sep 10, 2019, 08:57 AMHow can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
try using this:
function onPlayerEnteringVehicle( player, vehicle, door )
{
if( vehicle.Model == 191 ) return 0;
}
Cool! It works! Thanks a lot for your help!
Quote from: MatheuS on Sep 10, 2019, 11:45 AMQuote from: Kenneth Law on Sep 10, 2019, 10:49 AMQuote from: MEGAMIND on Sep 10, 2019, 10:30 AMQuote from: Kenneth Law on Sep 10, 2019, 08:57 AMHow can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
try using this:
function onPlayerEnteringVehicle( player, vehicle, door )
{
if( vehicle.Model == 191 ) return 0;
}
yes ofc why not
Quote from: Kenneth Law on Sep 10, 2019, 08:57 AMI've used the code vehicle.Locked=true but players can still get in the bike.
Read posts carefully, and don't use google translate.
Quote from: Athanatos on Sep 10, 2019, 06:56 PMQuote from: Kenneth Law on Sep 10, 2019, 08:57 AMI've used the code vehicle.Locked=true but players can still get in the bike.
Read posts carefully, and don't use google translate.
I wasn't using any translator man. And which post exactly do you refer to?
I was reffering to Alecu's post, sorry for the confusion. I used your post to told him that you already tried CVehicle::Locked
oh oh ok
The solution has been posted therefore closing this.