15.10.2013, 14:01
Try and use this command and let me know if it fixes it?
Code:
CMD:carlights(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1; new variables[7], vehicleid = GetPlayerVehicleID(playerid); GetVehicleParamsEx(vehicleid, variables[0], variables[1], variables[2], variables[3], variables[4], variables[5], variables[6]); if(variables[1] != VEHICLE_PARAMS_ON) { SetVehicleParamsEx(vehicleid, variables[0], VEHICLE_PARAMS_ON, variables[2], variables[3], variables[4], variables[5], variables[6]); } else { SetVehicleParamsEx(vehicleid, variables[0], VEHICLE_PARAMS_OFF, variables[2], variables[3], variables[4], variables[5], variables[6]); } return 1; }