/engine command
#2

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;

GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), 1 - engine, lights, alarm, doors, bonnet, boot, objective);
This code reads the status of the vehicle and toggles the engine on or off, based on the current status.
If the engine is on (engine = 1), the engine will be turned off.
If it's off (engine = 0), it will be turned on.
Reply


Messages In This Thread
/engine command - by LiamM - 19.02.2011, 21:05
Re: /engine command - by PowerPC603 - 19.02.2011, 21:50
Re: /engine command - by LiamM - 19.02.2011, 23:04
Re: /engine command - by PowerPC603 - 19.02.2011, 23:52
Re: /engine command - by LiamM - 20.02.2011, 00:47
Re: /engine command - by LiamM - 20.02.2011, 21:49
Re: /engine command - by Gertin - 21.02.2011, 16:36
Re: /engine command - by LiamM - 22.02.2011, 21:50
Re: /engine command - by Hashski - 22.02.2011, 23:40
Re: /engine command - by LiamM - 26.02.2011, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)