SA-MP Forums Archive
I can drive with my car engine off. [Help!] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I can drive with my car engine off. [Help!] (/showthread.php?tid=385456)



I can drive with my car engine off. [Help!] - xXRealLegitXx - 16.10.2012

Ok, So I added AVS (Advanced Vehicle System) and when I get into my car it says my engine is OFF but I can still drive it, How do I make it so my engine is truly 'off' when I get in?


Re: I can drive with my car engine off. [Help!] - T-Raw - 16.10.2012

ManualVehicleEngineAndLights(); add this under gm int, u should read, before u post in the FS its marked big, lmfao @ u ppl


Re: I can drive with my car engine off. [Help!] - xXRealLegitXx - 16.10.2012

Quote:
Originally Posted by T-Raw
Посмотреть сообщение
ManualVehicleEngineAndLights(); add this under gm int, u should read, before u post in the FS its marked big, lmfao @ u ppl
LMAO already tried that,

didn't work.


Re: I can drive with my car engine off. [Help!] - T-Raw - 16.10.2012

then read all itz problems, idk it work normal when i tested it


Re: I can drive with my car engine off. [Help!] - Gamer_007 - 16.10.2012

if(IsPlayerInAnyVehicle(playerid))
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,COLOR,"Type /engine to start your Vehicle");
}
UNTILL THE /engine command is not typed.

Maybe it work.Its like afk system bcz it stops the whole movement but i m not sure


Re: I can drive with my car engine off. [Help!] - Steven82 - 16.10.2012

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
if(IsPlayerInAnyVehicle(playerid))
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,COLOR,"Type /engine to start your Vehicle");
}
UNTILL THE /engine command is not typed.

Maybe it work.Its like afk system bcz it stops the whole movement but i m not sure
Why would you use that old method, when the new method allows you to move your camera and what not, but just not have the vehicles engine started?


Re: I can drive with my car engine off. [Help!] - Gamer_007 - 16.10.2012

I only use this so i suggested it.No problem if u use another


Re: I can drive with my car engine off. [Help!] - Steven82 - 16.10.2012

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
I only use this so i suggested it.No problem if u use another
It's not a bad method to use, it all depends on YOUR coding style

I used this method awhile back, this was when I first learned how to create engine systems before we had all the nice new manual vehicle engine/lights and hoods/trunks.


Re: I can drive with my car engine off. [Help!] - xXRealLegitXx - 16.10.2012

Quote:
Originally Posted by Gamer_007
Посмотреть сообщение
if(IsPlayerInAnyVehicle(playerid))
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,COLOR,"Type /engine to start your Vehicle");
}
UNTILL THE /engine command is not typed.

Maybe it work.Its like afk system bcz it stops the whole movement but i m not sure
Unfortunally, it didn't work.