new engine, lights, alarm, doors, bonnet, boot, objective;GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
Tudod te mire jó a ManualVehicleEngineAndLights? Úgy látom, hogy fogalmad nincs. Ha az bent van, akkor mûködik ez a kód: new engine, lights, alarm, doors, bonnet, boot, objective;GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective); Ha az nincs bent, akkor ez a kód semmit nem fog csinálni.
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ new engine, lights, alarm, doors, bonnet, boot, objective;GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective); return 1;}
public OnPlayerExitVehicle(playerid, vehicleid){ new engine, lights, alarm, doors, bonnet, boot, objective;GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);return 1;}