19.10.2015, 15:29
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { new vehicleid = GetPlayerVehicleID(playerid); if (vehicleid) { if ((newkeys & KEY_SUBMISSION) && GetPlayerVehicleSeat(playerid) == 0) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); if (!engine) engine = 1; return true; } else engine = 0; SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); } return true; }