when engine run can all drive - 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: when engine run can all drive (
/showthread.php?tid=112590)
when engine run can all drive -
whitedragon - 08.12.2009
How i do that when the player is not turn off engine can drive all players with it
Re: when engine run can all drive -
RyDeR` - 08.12.2009
what? explain more ..
Re: when engine run can all drive -
whitedragon - 09.12.2009
Quote:
Originally Posted by [WsR
RyDeR ]
what? explain more ..
|
lets say that you start your vehicle. You drive to bank. You dont turn off your car engine. In street walks another user and he go to your car and drive it away(engine works.)
Re: when engine run can all drive -
LarzI - 09.12.2009
make a toggle command?
Re: when engine run can all drive -
whitedragon - 09.12.2009
Quote:
Originally Posted by lrZ^ aka LarzI
make a toggle command?
|
no i want to do that when engine work all players can drive with that car
Re: when engine run can all drive -
whitedragon - 12.12.2009
can anyone help me?
i have try to edit EngineOn system but no help
Re: when engine run can all drive -
LarzI - 12.12.2009
Explain exactly what you want.
If you're not english-speaking, try using a translator so we can understand better.
Re: when engine run can all drive -
Deat_Itself - 12.12.2009
Quote:
Originally Posted by lrZ^ aka LarzI
Explain exactly what you want.
If you're not english-speaking, try using a translator so we can understand better.
|
he means that when i sit in a car and turn the engine on so i may go to bank somewhere and if i forgotten to turn engine off so if the another user sit in that car can directly drives a car without turning on the engine !
Re: when engine run can all drive -
miokie - 12.12.2009
Make something like this:
pawn Код:
new Engine[MAX_VEHICLES];
When engine is turned on:
When engine is turned off:
When checking if the vehicle has the engine off or on:
(This would usually go in OnPlayerStateChange)
pawn Код:
if(Engine[vehicleid] == 0) //Vehicle Engine is off
{
//Do what ever you want like freeze the player if the engine is off, so the player cannot just drive away
}
else
{
//If the vehicle is on, do something here:
}
You will obvoiusly have to define vehicle id in places it cannot be used (Such as commands).
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
I hope you understand.
Re: when engine run can all drive -
LarzI - 12.12.2009
Or just use v1 of my EngineOn script