Engine always on? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Engine always on? (
/showthread.php?tid=230476)
Engine always on? -
77ther - 23.02.2011
How to set every car's engine to off when starting the server?
edit: 0.3c compatible
Re: Engine always on? -
Stigg - 23.02.2011
Try here:
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Peace...
Re: Engine always on? -
77ther - 23.02.2011
Quote:
Originally Posted by Stigg
|
That's about setting vehicle parameters not about the thing that I'm asking...
off topic: what the fuck is with that "peace" at the end of every reply... it's stupid..<.<
Re: Engine always on? -
Stigg - 23.02.2011
Your question:
How to set every car's engine to off when starting the server?
edit: 0.3c compatible
My answer:
SetVehicleParamsEx
engine Toggle the engine status on or off.
I dont see a problem.
Off topic: That my business m8.
Peace...
Re: Engine always on? -
77ther - 23.02.2011
Quote:
Originally Posted by Stigg
Your question:
How to set every car's engine to off when starting the server?
edit: 0.3c compatible
My answer:
SetVehicleParamsEx
engine Toggle the engine status on or off.
I dont see a problem.
Off topic: That my business m8.
Peace...
|
your reply is just posthunting, you're not even helping...<.<
Re: Engine always on? -
Parrot - 23.02.2011
ManualVehicleEngineAndLights(); in OnGameModeInit if I remember it right.
https://sampwiki.blast.hk/wiki/ManualVehicleEngineAndLights
Re: Engine always on? -
77ther - 23.02.2011
Quote:
Originally Posted by Parrot
ManualVehicleEngineAndLights(); in GameModeInit if I remember it right.
|
and it creates some bug, when you enter your vehicle, and type /engine to turn it on(it's 0.3c compatible) it says you turned your engine off, and you still can't drive..
Re: Engine always on? -
Stigg - 23.02.2011
Listen m8, i gave you the link because thats how i set my vehicles on my server. I works great.
If it dont help, no need to get personal and do a search yourself.
Peace...
Re: Engine always on? -
Parrot - 23.02.2011
Works just fine for me. Post the code which is buggy for you so we can help you.
AW: Engine always on? -
Kmitska - 23.02.2011
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(GetVehicleModel(i) != 481)//BMX

{
new engine,lights,alarm,doors,bonnet,boot,objective;
SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,b oot,objective);
}
}