29.11.2010, 16:49
When I turn my alarm off while in car, the horn keeps on going. It stops when I step out of the car.
AlarmOn(vehicleid) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,1,doors,bonnet,boot,objective); } AlarmOff(vehicleid) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,0,doors,bonnet,boot,objective); }
alright the code to turn it on and off:
Код:
AlarmOn(vehicleid) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,1,doors,bonnet,boot,objective); } AlarmOff(vehicleid) { new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(vehicleid,engine,lights,0,doors,bonnet,boot,objective); } |