03.10.2015, 17:40
Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys){ if(newkeys == KEY_LOOK_BEHIND){ if(IsPlayerInAnyVehicle(playerid)){ new engine, lights, alarm, doors, bonnet, boot, objective, vehid; vehid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehid, (engine>0?0:1), lights, alarm, doors, bonnet, boot, objective); if((engine>0?0:1) == 1){ //Msg engine ON } else { //Msg engine OFF } } } return 1; }