Bug - 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: Bug (
/showthread.php?tid=353719)
Bug -
RyanPetersons - 24.06.2012
Actually, I have this bug.
When, i enter the car, I can drive it without typing /engine, I don't why is it happening?
do, you guys know how to fix this bug?
I hope, so I have to write something under OnPlayerEnterVehicle, but I don't remember that what i should write under it, so could you guys help me to fix it?
Regards,
RyanPetersons.
Re: Bug -
JaKe Elite - 24.06.2012
you must use ManualEngineandLights first
Re: Bug -
Grand_Micha - 24.06.2012
Quote:
Originally Posted by RyanPetersons
Actually, I have this bug.
When, i enter the car, I can drive it without typing /engine
|
Very funny. Now back to the topic.
Quoting the wiki:
Код:
public OnGameModeInit()
{
ManualVehicleEngineAndLights();
}
And for the command /engine:
Код:
new engine, lights, alarm, doors, bonnet, boot, objective,vid;
vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, 1, lights, alarm, doors, bonnet, boot, objective);